Commit 94547145 by krocard Committed by kim-vde

Update skippedOutputBufferCount correctly in batching mode

The counter was increased by one for each batch
instead of each frame.

PiperOrigin-RevId: 320396903
parent e8596428
......@@ -631,7 +631,7 @@ public class MediaCodecAudioRenderer extends MediaCodecRenderer implements Media
if (codec != null) {
codec.releaseOutputBuffer(bufferIndex, false);
}
decoderCounters.skippedOutputBufferCount++;
decoderCounters.skippedOutputBufferCount += sampleCount;
audioSink.handleDiscontinuity();
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment