From: Kostya Shishkov Date: Thu, 24 Jun 2021 09:08:07 +0000 (+0200) Subject: mov: mark segments start as seeking points X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=6bb2692727d9617c7f349c037761f8e83198f840;p=nihav.git mov: mark segments start as seeking points --- diff --git a/nihav-commonfmt/src/demuxers/mov.rs b/nihav-commonfmt/src/demuxers/mov.rs index 745f440..99a3762 100644 --- a/nihav-commonfmt/src/demuxers/mov.rs +++ b/nihav-commonfmt/src/demuxers/mov.rs @@ -984,6 +984,9 @@ fn read_trun(track: &mut Track, br: &mut ByteReader, size: u64) -> DemuxerResult track.ctts_map.reserve(sample_count); } + if track.chunk_offsets.len() < (std::u32::MAX as usize) { + track.keyframes.push((track.chunk_offsets.len() + 1) as u32); + } for _ in 0..sample_count { if sample_duration_present { let _duration = br.read_u32be()?;