Commit 72efc800 by tonihei Committed by Oliver Woodman

Correct timescale of edit list duration parsing for stbl atoms.

We currently apply the track.timescale whereas we should be applying the
track.movieTimescale. The parsing for the trak atom does this correctly
and the duration from the trak atom currently always takes precedence over the
durations from the stbl atoms as it's always larger.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=212421687
parent be113699
...@@ -436,7 +436,8 @@ import java.util.List; ...@@ -436,7 +436,8 @@ import java.util.List;
} }
pts += track.editListDurations[i]; pts += track.editListDurations[i];
} }
long editedDurationUs = Util.scaleLargeTimestamp(pts, C.MICROS_PER_SECOND, track.timescale); long editedDurationUs =
Util.scaleLargeTimestamp(pts, C.MICROS_PER_SECOND, track.movieTimescale);
return new TrackSampleTable( return new TrackSampleTable(
track, track,
editedOffsets, editedOffsets,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment