From 444d62b237e2fa06710eb0c6052d58a765424f1c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 22 Feb 2026 19:48:10 +0100 Subject: [PATCH] mov: yet another fix for raw audio demuxing --- nihav-commonfmt/src/demuxers/mov.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5