mirror of
https://github.com/samsonjs/media.git
synced 2026-04-18 13:25:47 +00:00
Fix the build.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117234408
This commit is contained in:
parent
7208819018
commit
9d5aa0f983
2 changed files with 5 additions and 2 deletions
|
|
@ -105,6 +105,7 @@ public final class FragmentedMp4Extractor implements Extractor {
|
|||
private ParsableByteArray atomData;
|
||||
private long endOfMdatPosition;
|
||||
|
||||
private long durationUs;
|
||||
private TrackBundle currentTrackBundle;
|
||||
private int sampleSize;
|
||||
private int sampleBytesWritten;
|
||||
|
|
@ -230,7 +231,7 @@ public final class FragmentedMp4Extractor implements Extractor {
|
|||
currentTrackBundle = null;
|
||||
endOfMdatPosition = atomPosition + atomSize;
|
||||
if (!haveOutputSeekMap) {
|
||||
extractorOutput.seekMap(new SeekMap.Unseekable(C.UNKNOWN_TIME_US));
|
||||
extractorOutput.seekMap(new SeekMap.Unseekable(durationUs));
|
||||
haveOutputSeekMap = true;
|
||||
}
|
||||
parserState = STATE_READING_ENCRYPTION_DATA;
|
||||
|
|
@ -336,6 +337,7 @@ public final class FragmentedMp4Extractor implements Extractor {
|
|||
}
|
||||
|
||||
// Construction of Tracks and TrackOutputs.
|
||||
durationUs = C.UNKNOWN_TIME_US;
|
||||
trackBundles.clear();
|
||||
int moovContainerChildrenSize = moov.containerChildren.size();
|
||||
int trackBundlesSize = 0;
|
||||
|
|
@ -349,6 +351,7 @@ public final class FragmentedMp4Extractor implements Extractor {
|
|||
extractorOutput.track(trackBundlesSize++), defaultSampleValues);
|
||||
bundle.output.format(track.format);
|
||||
trackBundles.put(track.id, bundle);
|
||||
durationUs = Math.max(track.durationUs, durationUs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -997,7 +997,7 @@ public final class WebmExtractor implements Extractor {
|
|||
durationsUs[cuePointsSize - 1] = durationUs - timesUs[cuePointsSize - 1];
|
||||
cueTimesUs = null;
|
||||
cueClusterPositions = null;
|
||||
return new ChunkIndex(durationUs, sizes, offsets, durationsUs, timesUs);
|
||||
return new ChunkIndex(sizes, offsets, durationsUs, timesUs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue