mirror of
https://github.com/androidx/media.git
synced 2025-05-07 07:30:22 +08: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
@ -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…
x
Reference in New Issue
Block a user