mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Use gapless edit duration as sample table duration
This matches the non-gapless case. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=213462936
This commit is contained in:
parent
e4f41880bd
commit
7fe5230a7e
1 changed files with 4 additions and 1 deletions
|
|
@ -349,8 +349,11 @@ import java.util.List;
|
||||||
gaplessInfoHolder.encoderDelay = (int) encoderDelay;
|
gaplessInfoHolder.encoderDelay = (int) encoderDelay;
|
||||||
gaplessInfoHolder.encoderPadding = (int) encoderPadding;
|
gaplessInfoHolder.encoderPadding = (int) encoderPadding;
|
||||||
Util.scaleLargeTimestampsInPlace(timestamps, C.MICROS_PER_SECOND, track.timescale);
|
Util.scaleLargeTimestampsInPlace(timestamps, C.MICROS_PER_SECOND, track.timescale);
|
||||||
|
long editedDurationUs =
|
||||||
|
Util.scaleLargeTimestamp(
|
||||||
|
track.editListDurations[0], C.MICROS_PER_SECOND, track.movieTimescale);
|
||||||
return new TrackSampleTable(
|
return new TrackSampleTable(
|
||||||
track, offsets, sizes, maximumSize, timestamps, flags, durationUs);
|
track, offsets, sizes, maximumSize, timestamps, flags, editedDurationUs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue