From: Kostya Shishkov Date: Sun, 22 Feb 2026 18:48:10 +0000 (+0100) Subject: mov: yet another fix for raw audio demuxing X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=444d62b237e2fa06710eb0c6052d58a765424f1c;p=nihav.git mov: yet another fix for raw audio demuxing --- diff --git a/nihav-commonfmt/src/demuxers/mov.rs b/nihav-commonfmt/src/demuxers/mov.rs index fce6336..a614d23 100644 --- a/nihav-commonfmt/src/demuxers/mov.rs +++ b/nihav-commonfmt/src/demuxers/mov.rs @@ -1483,7 +1483,7 @@ impl Track { self.samples_left -= 1; } else { const BLOCK_SAMPLES: usize = 1024 * 6; // should be multiple of 64 and 6 to fit both IMA ADPCM and MACE 6:1 blocks - if size > 1 { + if size > self.calculate_chunk_size(1) { let max_size = self.calculate_chunk_size(BLOCK_SAMPLES); let cur_size = self.calculate_chunk_size(self.samples_left); let add_off = (size - cur_size) as u64;