From: Kostya Shishkov Date: Sat, 19 Jul 2025 12:39:08 +0000 (+0200) Subject: mov: support another constant-block stream case X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=a0288106ee27c8ece266ed3c06be5f6a2b7ab406;p=nihav.git mov: support another constant-block stream case --- 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() {