Commit daa45a16 by ibaker Committed by Ian Baker

Fix parameter comments

PiperOrigin-RevId: 425874534
parent e1215021
...@@ -1839,7 +1839,7 @@ public final class MediaItem implements Bundleable { ...@@ -1839,7 +1839,7 @@ public final class MediaItem implements Bundleable {
return new MediaItem( return new MediaItem(
mediaId, mediaId,
clippingConfiguration, clippingConfiguration,
/* playbackProperties= */ null, /* localConfiguration= */ null,
liveConfiguration, liveConfiguration,
mediaMetadata); mediaMetadata);
} }
......
...@@ -288,7 +288,7 @@ public final class FlacExtractor implements Extractor { ...@@ -288,7 +288,7 @@ public final class FlacExtractor implements Extractor {
sampleData.setPosition(0); sampleData.setPosition(0);
output.sampleData(sampleData, size); output.sampleData(sampleData, size);
output.sampleMetadata( 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. */ /** A {@link SeekMap} implementation using a SeekTable within the Flac stream. */
......
...@@ -1071,7 +1071,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -1071,7 +1071,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
TrackOutput icyTrackOutput = Assertions.checkNotNull(this.icyTrackOutput); TrackOutput icyTrackOutput = Assertions.checkNotNull(this.icyTrackOutput);
icyTrackOutput.sampleData(metadata, length); icyTrackOutput.sampleData(metadata, length);
icyTrackOutput.sampleMetadata( 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; seenIcyMetadata = true;
} }
......
...@@ -151,7 +151,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -151,7 +151,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
private static void outputSampleMetadata(TrackOutput trackOutput, long sampleTimeUs, int size) { private static void outputSampleMetadata(TrackOutput trackOutput, long sampleTimeUs, int size) {
trackOutput.sampleMetadata( 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. */ /** 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; ...@@ -140,7 +140,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
/* flags= */ C.BUFFER_FLAG_KEY_FRAME, /* flags= */ C.BUFFER_FLAG_KEY_FRAME,
/* size= */ frameSize, /* size= */ frameSize,
/* offset= */ 0, /* offset= */ 0,
/* encryptionData= */ null); /* cryptoData= */ null);
} }
private void processMultiFramePacket(ParsableByteArray data, int numOfFrames, long sampleTimeUs) { private void processMultiFramePacket(ParsableByteArray data, int numOfFrames, long sampleTimeUs) {
...@@ -159,7 +159,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -159,7 +159,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
/* flags= */ C.BUFFER_FLAG_KEY_FRAME, /* flags= */ C.BUFFER_FLAG_KEY_FRAME,
/* size= */ frameInfo.frameSize, /* size= */ frameInfo.frameSize,
/* offset= */ 0, /* offset= */ 0,
/* encryptionData= */ null); /* cryptoData= */ null);
sampleTimeUs += (frameInfo.sampleCount / frameInfo.sampleRate) * C.MICROS_PER_SECOND; sampleTimeUs += (frameInfo.sampleCount / frameInfo.sampleRate) * C.MICROS_PER_SECOND;
// Advance the position by the number of bytes read. // Advance the position by the number of bytes read.
...@@ -205,7 +205,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -205,7 +205,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
/* flags= */ C.BUFFER_FLAG_KEY_FRAME, /* flags= */ C.BUFFER_FLAG_KEY_FRAME,
/* size= */ numBytesPendingMetadataOutput, /* size= */ numBytesPendingMetadataOutput,
/* offset= */ 0, /* offset= */ 0,
/* encryptionData= */ null); /* cryptoData= */ null);
numBytesPendingMetadataOutput = 0; numBytesPendingMetadataOutput = 0;
} }
......
...@@ -117,11 +117,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull; ...@@ -117,11 +117,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
long timeUs = toSampleUs(startTimeOffsetUs, timestamp, firstReceivedTimestamp); long timeUs = toSampleUs(startTimeOffsetUs, timestamp, firstReceivedTimestamp);
trackOutput.sampleMetadata( trackOutput.sampleMetadata(
timeUs, timeUs, bufferFlags, fragmentedSampleSizeBytes, /* offset= */ 0, /* cryptoData= */ null);
bufferFlags,
fragmentedSampleSizeBytes,
/* offset= */ 0,
/* encryptionData= */ null);
fragmentedSampleSizeBytes = 0; fragmentedSampleSizeBytes = 0;
} }
......
...@@ -319,7 +319,7 @@ public final class AmrExtractor implements Extractor { ...@@ -319,7 +319,7 @@ public final class AmrExtractor implements Extractor {
C.BUFFER_FLAG_KEY_FRAME, C.BUFFER_FLAG_KEY_FRAME,
currentSampleSize, currentSampleSize,
/* offset= */ 0, /* offset= */ 0,
/* encryptionData= */ null); /* cryptoData= */ null);
currentSampleTimeUs += SAMPLE_TIME_PER_FRAME_US; currentSampleTimeUs += SAMPLE_TIME_PER_FRAME_US;
return RESULT_CONTINUE; return RESULT_CONTINUE;
} }
......
...@@ -416,6 +416,6 @@ public final class FlacExtractor implements Extractor { ...@@ -416,6 +416,6 @@ public final class FlacExtractor implements Extractor {
C.BUFFER_FLAG_KEY_FRAME, C.BUFFER_FLAG_KEY_FRAME,
currentFrameBytesWritten, currentFrameBytesWritten,
/* offset= */ 0, /* offset= */ 0,
/* encryptionData= */ null); /* cryptoData= */ null);
} }
} }
...@@ -475,7 +475,7 @@ public final class H263Reader implements ElementaryStreamReader { ...@@ -475,7 +475,7 @@ public final class H263Reader implements ElementaryStreamReader {
int size = (int) (position - samplePosition); int size = (int) (position - samplePosition);
@C.BufferFlags int flags = sampleIsKeyframe ? C.BUFFER_FLAG_KEY_FRAME : 0; @C.BufferFlags int flags = sampleIsKeyframe ? C.BUFFER_FLAG_KEY_FRAME : 0;
output.sampleMetadata( 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 // 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. // include the data at the start of a 'video object plane' coming next.
......
...@@ -369,7 +369,7 @@ public final class WavExtractor implements Extractor { ...@@ -369,7 +369,7 @@ public final class WavExtractor implements Extractor {
int size = pendingFrames * bytesPerFrame; int size = pendingFrames * bytesPerFrame;
int offset = pendingOutputBytes - size; int offset = pendingOutputBytes - size;
trackOutput.sampleMetadata( trackOutput.sampleMetadata(
timeUs, C.BUFFER_FLAG_KEY_FRAME, size, offset, /* encryptionData= */ null); timeUs, C.BUFFER_FLAG_KEY_FRAME, size, offset, /* cryptoData= */ null);
outputFrameCount += pendingFrames; outputFrameCount += pendingFrames;
pendingOutputBytes = offset; pendingOutputBytes = offset;
} }
...@@ -548,7 +548,7 @@ public final class WavExtractor implements Extractor { ...@@ -548,7 +548,7 @@ public final class WavExtractor implements Extractor {
int size = numOutputFramesToBytes(sampleFrames); int size = numOutputFramesToBytes(sampleFrames);
int offset = pendingOutputBytes - size; int offset = pendingOutputBytes - size;
trackOutput.sampleMetadata( trackOutput.sampleMetadata(
timeUs, C.BUFFER_FLAG_KEY_FRAME, size, offset, /* encryptionData= */ null); timeUs, C.BUFFER_FLAG_KEY_FRAME, size, offset, /* cryptoData= */ null);
outputFrameCount += sampleFrames; outputFrameCount += sampleFrames;
pendingOutputBytes -= size; pendingOutputBytes -= size;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment