mirror of
https://github.com/androidx/media.git
synced 2025-05-14 02:59:52 +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;
|
||||
}
|
||||
|
||||
int decodeOnlyIdx = getDecodeOnlyIndex(outputBufferInfo.presentationTimeUs);
|
||||
int decodeOnlyIndex = getDecodeOnlyIndex(outputBufferInfo.presentationTimeUs);
|
||||
if (processOutputBuffer(positionUs, elapsedRealtimeUs, codec, outputBuffers[outputIndex],
|
||||
outputBufferInfo, outputIndex, decodeOnlyIdx >= 0)) {
|
||||
if (decodeOnlyIdx >= 0) {
|
||||
decodeOnlyPresentationTimestamps.remove(decodeOnlyIdx);
|
||||
outputBufferInfo, outputIndex, decodeOnlyIndex != -1)) {
|
||||
if (decodeOnlyIndex != -1) {
|
||||
decodeOnlyPresentationTimestamps.remove(decodeOnlyIndex);
|
||||
} else {
|
||||
currentPositionUs = outputBufferInfo.presentationTimeUs;
|
||||
}
|
||||
@ -794,4 +794,5 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user