From a0288106ee27c8ece266ed3c06be5f6a2b7ab406 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 19 Jul 2025 14:39:08 +0200 Subject: [PATCH] mov: support another constant-block stream case --- nihav-commonfmt/src/demuxers/mov.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nihav-commonfmt/src/demuxers/mov.rs b/nihav-commonfmt/src/demuxers/mov.rs index 1ec8023..58a3a86 100644 --- a/nihav-commonfmt/src/demuxers/mov.rs +++ b/nihav-commonfmt/src/demuxers/mov.rs @@ -1451,6 +1451,8 @@ impl Track { fn get_size(&self, sample_no: usize) -> usize { if !self.chunk_sizes.is_empty() { self.chunk_sizes[sample_no] as usize + } else if self.stream_type != StreamType::Audio && self.sample_map.len() <= 1 && self.bsize > 0 { + self.bsize } else if !self.sample_map.is_empty() { let mut nsamp = 0; for (idx, samples) in self.sample_map.iter() { -- 2.39.5