mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Add helper function in Track.java to copy track without edit lists.
PiperOrigin-RevId: 642038117
This commit is contained in:
parent
24462dd77b
commit
32d7516237
1 changed files with 15 additions and 0 deletions
|
|
@ -140,4 +140,19 @@ public final class Track {
|
|||
editListDurations,
|
||||
editListMediaTimes);
|
||||
}
|
||||
|
||||
public Track copyWithoutEditLists() {
|
||||
return new Track(
|
||||
id,
|
||||
type,
|
||||
timescale,
|
||||
movieTimescale,
|
||||
durationUs,
|
||||
format,
|
||||
sampleTransformation,
|
||||
sampleDescriptionEncryptionBoxes,
|
||||
nalUnitLengthFieldLength,
|
||||
/* editListDurations= */ null,
|
||||
/* editListMediaTimes= */ null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue