mirror of
https://github.com/androidx/media.git
synced 2025-05-14 11:09:53 +08:00
Minor stylistic tweaks.
This commit is contained in:
parent
d506d7660d
commit
2a832fd3c4
@ -737,11 +737,11 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int decodeOnlyIdx = getDecodeOnlyIndex(outputBufferInfo.presentationTimeUs);
|
int decodeOnlyIndex = getDecodeOnlyIndex(outputBufferInfo.presentationTimeUs);
|
||||||
if (processOutputBuffer(positionUs, elapsedRealtimeUs, codec, outputBuffers[outputIndex],
|
if (processOutputBuffer(positionUs, elapsedRealtimeUs, codec, outputBuffers[outputIndex],
|
||||||
outputBufferInfo, outputIndex, decodeOnlyIdx >= 0)) {
|
outputBufferInfo, outputIndex, decodeOnlyIndex != -1)) {
|
||||||
if (decodeOnlyIdx >= 0) {
|
if (decodeOnlyIndex != -1) {
|
||||||
decodeOnlyPresentationTimestamps.remove(decodeOnlyIdx);
|
decodeOnlyPresentationTimestamps.remove(decodeOnlyIndex);
|
||||||
} else {
|
} else {
|
||||||
currentPositionUs = outputBufferInfo.presentationTimeUs;
|
currentPositionUs = outputBufferInfo.presentationTimeUs;
|
||||||
}
|
}
|
||||||
@ -794,4 +794,5 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
|
|||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user