From 7daffb2210be1c80d5cb9679c18a19c64a2db854 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 20 Feb 2026 18:58:00 +0100 Subject: [PATCH] mov: use sample size in get_size() if possible --- 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 0d7799e..db2b3bd 100644 --- a/nihav-commonfmt/src/demuxers/mov.rs +++ b/nihav-commonfmt/src/demuxers/mov.rs @@ -1498,7 +1498,7 @@ impl Track { 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() { + } else if !self.sample_map.is_empty() && self.sample_size == 0 { let mut nsamp = 0; for (idx, samples) in self.sample_map.iter() { if *idx as usize <= self.cur_chunk { -- 2.39.5