1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2025-04-15 08:14:15 +00:00
This commit is contained in:
damitha 2025-03-21 14:11:54 +11:00
parent 2d8a14fed8
commit b7ca80278e

View file

@ -952,8 +952,8 @@ impl Mp4TrackWriter {
version: 1,
flags: 0,
entries: vec![ElstEntry {
segment_duration: (offset * 1_000) / 1_000_000,
media_time: (offset * self.trak.mdia.mdhd.timescale as u64) / 1_000_000,
segment_duration: self.trak.tkhd.duration,
media_time: offset,
media_rate: 1,
media_rate_fraction: 0,
}],