From 6bb2692727d9617c7f349c037761f8e83198f840 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 24 Jun 2021 11:08:07 +0200 Subject: [PATCH] mov: mark segments start as seeking points --- nihav-commonfmt/src/demuxers/mov.rs | 3 +++ 1 file changed, 3 insertions(+) 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()?; -- 2.39.5