Minor stylistic tweaks.

This commit is contained in:
Oliver Woodman 2014-11-20 11:03:47 +00:00
parent d506d7660d
commit 2a832fd3c4

View File

@ -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;
} }
} }