Fix parameter comments
PiperOrigin-RevId: 425874534
This commit is contained in:
parent
e121502104
commit
daa45a16bd
@ -1839,7 +1839,7 @@ public final class MediaItem implements Bundleable {
|
||||
return new MediaItem(
|
||||
mediaId,
|
||||
clippingConfiguration,
|
||||
/* playbackProperties= */ null,
|
||||
/* localConfiguration= */ null,
|
||||
liveConfiguration,
|
||||
mediaMetadata);
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ public final class FlacExtractor implements Extractor {
|
||||
sampleData.setPosition(0);
|
||||
output.sampleData(sampleData, size);
|
||||
output.sampleMetadata(
|
||||
timeUs, C.BUFFER_FLAG_KEY_FRAME, size, /* offset= */ 0, /* encryptionData= */ null);
|
||||
timeUs, C.BUFFER_FLAG_KEY_FRAME, size, /* offset= */ 0, /* cryptoData= */ null);
|
||||
}
|
||||
|
||||
/** A {@link SeekMap} implementation using a SeekTable within the Flac stream. */
|
||||
|
@ -1071,7 +1071,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
TrackOutput icyTrackOutput = Assertions.checkNotNull(this.icyTrackOutput);
|
||||
icyTrackOutput.sampleData(metadata, length);
|
||||
icyTrackOutput.sampleMetadata(
|
||||
timeUs, C.BUFFER_FLAG_KEY_FRAME, length, /* offset= */ 0, /* encryptionData= */ null);
|
||||
timeUs, C.BUFFER_FLAG_KEY_FRAME, length, /* offset= */ 0, /* cryptoData= */ null);
|
||||
seenIcyMetadata = true;
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
|
||||
private static void outputSampleMetadata(TrackOutput trackOutput, long sampleTimeUs, int size) {
|
||||
trackOutput.sampleMetadata(
|
||||
sampleTimeUs, C.BUFFER_FLAG_KEY_FRAME, size, /* offset= */ 0, /* encryptionData= */ null);
|
||||
sampleTimeUs, C.BUFFER_FLAG_KEY_FRAME, size, /* offset= */ 0, /* cryptoData= */ null);
|
||||
}
|
||||
|
||||
/** Returns the correct sample time from RTP timestamp, accounting for the AAC sampling rate. */
|
||||
|
@ -140,7 +140,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
/* flags= */ C.BUFFER_FLAG_KEY_FRAME,
|
||||
/* size= */ frameSize,
|
||||
/* offset= */ 0,
|
||||
/* encryptionData= */ null);
|
||||
/* cryptoData= */ null);
|
||||
}
|
||||
|
||||
private void processMultiFramePacket(ParsableByteArray data, int numOfFrames, long sampleTimeUs) {
|
||||
@ -159,7 +159,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
/* flags= */ C.BUFFER_FLAG_KEY_FRAME,
|
||||
/* size= */ frameInfo.frameSize,
|
||||
/* offset= */ 0,
|
||||
/* encryptionData= */ null);
|
||||
/* cryptoData= */ null);
|
||||
|
||||
sampleTimeUs += (frameInfo.sampleCount / frameInfo.sampleRate) * C.MICROS_PER_SECOND;
|
||||
// Advance the position by the number of bytes read.
|
||||
@ -205,7 +205,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
/* flags= */ C.BUFFER_FLAG_KEY_FRAME,
|
||||
/* size= */ numBytesPendingMetadataOutput,
|
||||
/* offset= */ 0,
|
||||
/* encryptionData= */ null);
|
||||
/* cryptoData= */ null);
|
||||
numBytesPendingMetadataOutput = 0;
|
||||
}
|
||||
|
||||
|
@ -117,11 +117,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||
|
||||
long timeUs = toSampleUs(startTimeOffsetUs, timestamp, firstReceivedTimestamp);
|
||||
trackOutput.sampleMetadata(
|
||||
timeUs,
|
||||
bufferFlags,
|
||||
fragmentedSampleSizeBytes,
|
||||
/* offset= */ 0,
|
||||
/* encryptionData= */ null);
|
||||
timeUs, bufferFlags, fragmentedSampleSizeBytes, /* offset= */ 0, /* cryptoData= */ null);
|
||||
fragmentedSampleSizeBytes = 0;
|
||||
}
|
||||
|
||||
|
@ -319,7 +319,7 @@ public final class AmrExtractor implements Extractor {
|
||||
C.BUFFER_FLAG_KEY_FRAME,
|
||||
currentSampleSize,
|
||||
/* offset= */ 0,
|
||||
/* encryptionData= */ null);
|
||||
/* cryptoData= */ null);
|
||||
currentSampleTimeUs += SAMPLE_TIME_PER_FRAME_US;
|
||||
return RESULT_CONTINUE;
|
||||
}
|
||||
|
@ -416,6 +416,6 @@ public final class FlacExtractor implements Extractor {
|
||||
C.BUFFER_FLAG_KEY_FRAME,
|
||||
currentFrameBytesWritten,
|
||||
/* offset= */ 0,
|
||||
/* encryptionData= */ null);
|
||||
/* cryptoData= */ null);
|
||||
}
|
||||
}
|
||||
|
@ -475,7 +475,7 @@ public final class H263Reader implements ElementaryStreamReader {
|
||||
int size = (int) (position - samplePosition);
|
||||
@C.BufferFlags int flags = sampleIsKeyframe ? C.BUFFER_FLAG_KEY_FRAME : 0;
|
||||
output.sampleMetadata(
|
||||
sampleTimeUs, flags, size, bytesWrittenPastPosition, /* encryptionData= */ null);
|
||||
sampleTimeUs, flags, size, bytesWrittenPastPosition, /* cryptoData= */ null);
|
||||
}
|
||||
// Start a new sample, unless this is a 'group of video object plane' in which case we
|
||||
// include the data at the start of a 'video object plane' coming next.
|
||||
|
@ -369,7 +369,7 @@ public final class WavExtractor implements Extractor {
|
||||
int size = pendingFrames * bytesPerFrame;
|
||||
int offset = pendingOutputBytes - size;
|
||||
trackOutput.sampleMetadata(
|
||||
timeUs, C.BUFFER_FLAG_KEY_FRAME, size, offset, /* encryptionData= */ null);
|
||||
timeUs, C.BUFFER_FLAG_KEY_FRAME, size, offset, /* cryptoData= */ null);
|
||||
outputFrameCount += pendingFrames;
|
||||
pendingOutputBytes = offset;
|
||||
}
|
||||
@ -548,7 +548,7 @@ public final class WavExtractor implements Extractor {
|
||||
int size = numOutputFramesToBytes(sampleFrames);
|
||||
int offset = pendingOutputBytes - size;
|
||||
trackOutput.sampleMetadata(
|
||||
timeUs, C.BUFFER_FLAG_KEY_FRAME, size, offset, /* encryptionData= */ null);
|
||||
timeUs, C.BUFFER_FLAG_KEY_FRAME, size, offset, /* cryptoData= */ null);
|
||||
outputFrameCount += sampleFrames;
|
||||
pendingOutputBytes -= size;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user