projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mov: mark segments start as seeking points
[nihav.git]
/
nihav-commonfmt
/
src
/
demuxers
/
mov.rs
diff --git
a/nihav-commonfmt/src/demuxers/mov.rs
b/nihav-commonfmt/src/demuxers/mov.rs
index 745f4402246d0e7f1484fc5af0f4c0688261a384..99a376243dfceb94141868731df031bde701c0ec 100644
(file)
--- 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);
}
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()?;
for _ in 0..sample_count {
if sample_duration_present {
let _duration = br.read_u32be()?;