mirror of
https://github.com/androidx/media.git
synced 2025-05-08 08:00:49 +08:00
Remove stray arguments from method
PiperOrigin-RevId: 342263700
This commit is contained in:
parent
dc86b625c5
commit
7fe68b52d5
@ -815,8 +815,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||||||
|
|
||||||
boolean treatDroppedBuffersAsSkipped = joiningDeadlineMs != C.TIME_UNSET;
|
boolean treatDroppedBuffersAsSkipped = joiningDeadlineMs != C.TIME_UNSET;
|
||||||
if (shouldDropBuffersToKeyframe(earlyUs, elapsedRealtimeUs, isLastBuffer)
|
if (shouldDropBuffersToKeyframe(earlyUs, elapsedRealtimeUs, isLastBuffer)
|
||||||
&& maybeDropBuffersToKeyframe(
|
&& maybeDropBuffersToKeyframe(positionUs, treatDroppedBuffersAsSkipped)) {
|
||||||
codec, bufferIndex, presentationTimeUs, positionUs, treatDroppedBuffersAsSkipped)) {
|
|
||||||
return false;
|
return false;
|
||||||
} else if (shouldDropOutputBuffer(earlyUs, elapsedRealtimeUs, isLastBuffer)) {
|
} else if (shouldDropOutputBuffer(earlyUs, elapsedRealtimeUs, isLastBuffer)) {
|
||||||
if (treatDroppedBuffersAsSkipped) {
|
if (treatDroppedBuffersAsSkipped) {
|
||||||
@ -974,9 +973,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||||||
* position. If no such keyframe exists, as the playback position is inside the same group of
|
* position. If no such keyframe exists, as the playback position is inside the same group of
|
||||||
* pictures as the buffer being processed, returns {@code false}. Returns {@code true} otherwise.
|
* pictures as the buffer being processed, returns {@code false}. Returns {@code true} otherwise.
|
||||||
*
|
*
|
||||||
* @param codec The codec that owns the output buffer.
|
|
||||||
* @param index The index of the output buffer to drop.
|
|
||||||
* @param presentationTimeUs The presentation time of the output buffer, in microseconds.
|
|
||||||
* @param positionUs The current playback position, in microseconds.
|
* @param positionUs The current playback position, in microseconds.
|
||||||
* @param treatDroppedBuffersAsSkipped Whether dropped buffers should be treated as intentionally
|
* @param treatDroppedBuffersAsSkipped Whether dropped buffers should be treated as intentionally
|
||||||
* skipped.
|
* skipped.
|
||||||
@ -984,9 +980,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||||||
* @throws ExoPlaybackException If an error occurs flushing the codec.
|
* @throws ExoPlaybackException If an error occurs flushing the codec.
|
||||||
*/
|
*/
|
||||||
protected boolean maybeDropBuffersToKeyframe(
|
protected boolean maybeDropBuffersToKeyframe(
|
||||||
MediaCodecAdapter codec,
|
|
||||||
int index,
|
|
||||||
long presentationTimeUs,
|
|
||||||
long positionUs,
|
long positionUs,
|
||||||
boolean treatDroppedBuffersAsSkipped)
|
boolean treatDroppedBuffersAsSkipped)
|
||||||
throws ExoPlaybackException {
|
throws ExoPlaybackException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user