Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
032df64f
authored
Feb 02, 2022
by
ibaker
Committed by
Ian Baker
Feb 04, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix parameter comments
PiperOrigin-RevId: 425874534
parent
d3b46f1c
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
13 additions
and
17 deletions
extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/FlacExtractor.java
library/common/src/main/java/com/google/android/exoplayer2/MediaItem.java
library/core/src/main/java/com/google/android/exoplayer2/source/ProgressiveMediaPeriod.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/amr/AmrExtractor.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/FlacExtractor.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/H263Reader.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/WavExtractor.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAacReader.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAc3Reader.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpH264Reader.java
extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/FlacExtractor.java
View file @
032df64f
...
...
@@ -286,7 +286,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
,
/*
encryption
Data= */
null
);
timeUs
,
C
.
BUFFER_FLAG_KEY_FRAME
,
size
,
/* offset= */
0
,
/*
crypto
Data= */
null
);
}
/** A {@link SeekMap} implementation using a SeekTable within the Flac stream. */
...
...
library/common/src/main/java/com/google/android/exoplayer2/MediaItem.java
View file @
032df64f
...
...
@@ -1800,7 +1800,7 @@ public final class MediaItem implements Bundleable {
return
new
MediaItem
(
mediaId
,
clippingConfiguration
,
/*
playbackProperties
= */
null
,
/*
localConfiguration
= */
null
,
liveConfiguration
,
mediaMetadata
);
}
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/ProgressiveMediaPeriod.java
View file @
032df64f
...
...
@@ -1069,7 +1069,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
,
/*
encryption
Data= */
null
);
timeUs
,
C
.
BUFFER_FLAG_KEY_FRAME
,
length
,
/* offset= */
0
,
/*
crypto
Data= */
null
);
seenIcyMetadata
=
true
;
}
...
...
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/amr/AmrExtractor.java
View file @
032df64f
...
...
@@ -317,7 +317,7 @@ public final class AmrExtractor implements Extractor {
C
.
BUFFER_FLAG_KEY_FRAME
,
currentSampleSize
,
/* offset= */
0
,
/*
encryption
Data= */
null
);
/*
crypto
Data= */
null
);
currentSampleTimeUs
+=
SAMPLE_TIME_PER_FRAME_US
;
return
RESULT_CONTINUE
;
}
...
...
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/FlacExtractor.java
View file @
032df64f
...
...
@@ -414,6 +414,6 @@ public final class FlacExtractor implements Extractor {
C
.
BUFFER_FLAG_KEY_FRAME
,
currentFrameBytesWritten
,
/* offset= */
0
,
/*
encryption
Data= */
null
);
/*
crypto
Data= */
null
);
}
}
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/H263Reader.java
View file @
032df64f
...
...
@@ -473,7 +473,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
,
/*
encryption
Data= */
null
);
sampleTimeUs
,
flags
,
size
,
bytesWrittenPastPosition
,
/*
crypto
Data= */
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.
...
...
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/WavExtractor.java
View file @
032df64f
...
...
@@ -367,7 +367,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
,
/*
encryption
Data= */
null
);
timeUs
,
C
.
BUFFER_FLAG_KEY_FRAME
,
size
,
offset
,
/*
crypto
Data= */
null
);
outputFrameCount
+=
pendingFrames
;
pendingOutputBytes
=
offset
;
}
...
...
@@ -546,7 +546,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
,
/*
encryption
Data= */
null
);
timeUs
,
C
.
BUFFER_FLAG_KEY_FRAME
,
size
,
offset
,
/*
crypto
Data= */
null
);
outputFrameCount
+=
sampleFrames
;
pendingOutputBytes
-=
size
;
}
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAacReader.java
View file @
032df64f
...
...
@@ -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
,
/*
encryption
Data= */
null
);
sampleTimeUs
,
C
.
BUFFER_FLAG_KEY_FRAME
,
size
,
/* offset= */
0
,
/*
crypto
Data= */
null
);
}
/** Returns the correct sample time from RTP timestamp, accounting for the AAC sampling rate. */
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpAc3Reader.java
View file @
032df64f
...
...
@@ -138,7 +138,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
/* flags= */
C
.
BUFFER_FLAG_KEY_FRAME
,
/* size= */
frameSize
,
/* offset= */
0
,
/*
encryption
Data= */
null
);
/*
crypto
Data= */
null
);
}
private
void
processMultiFramePacket
(
ParsableByteArray
data
,
int
numOfFrames
,
long
sampleTimeUs
)
{
...
...
@@ -157,7 +157,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
/* flags= */
C
.
BUFFER_FLAG_KEY_FRAME
,
/* size= */
frameInfo
.
frameSize
,
/* offset= */
0
,
/*
encryption
Data= */
null
);
/*
crypto
Data= */
null
);
sampleTimeUs
+=
(
frameInfo
.
sampleCount
/
frameInfo
.
sampleRate
)
*
C
.
MICROS_PER_SECOND
;
// Advance the position by the number of bytes read.
...
...
@@ -203,7 +203,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
/* flags= */
C
.
BUFFER_FLAG_KEY_FRAME
,
/* size= */
numBytesPendingMetadataOutput
,
/* offset= */
0
,
/*
encryption
Data= */
null
);
/*
crypto
Data= */
null
);
numBytesPendingMetadataOutput
=
0
;
}
...
...
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/reader/RtpH264Reader.java
View file @
032df64f
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment