aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-06-24 11:08:07 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-06-24 11:08:07 +0200
commit6bb2692727d9617c7f349c037761f8e83198f840 (patch)
treec5a322ad200adc10f59c43e73ca82505a98b948e
parent07972bf3d6de58d3e23e05101cda79482e76ac4c (diff)
downloadnihav-6bb2692727d9617c7f349c037761f8e83198f840.tar.gz
mov: mark segments start as seeking points
-rw-r--r--nihav-commonfmt/src/demuxers/mov.rs3
1 files changed, 3 insertions, 0 deletions
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()?;