mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-01-03 17:08:40 +00:00
Allow sample_time to wrap
This commit is contained in:
parent
35560e94f5
commit
5688950626
1 changed files with 2 additions and 2 deletions
|
@ -520,12 +520,12 @@ impl Mp4Track {
|
|||
)?;
|
||||
}
|
||||
let duration = trun.sample_durations[sample_idx];
|
||||
return Ok((base_start_time + start_offset, duration));
|
||||
return Ok((base_start_time.wrapping_add(start_offset), duration));
|
||||
}
|
||||
}
|
||||
}
|
||||
let start_offset = ((sample_id - 1) * default_sample_duration) as u64;
|
||||
Ok((base_start_time + start_offset, default_sample_duration))
|
||||
Ok((base_start_time.wrapping_add(start_offset), default_sample_duration))
|
||||
} else {
|
||||
let stts = &self.trak.mdia.minf.stbl.stts;
|
||||
|
||||
|
|
Loading…
Reference in a new issue