mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Update skippedOutputBufferCount correctly in batching mode
The counter was increased by one for each batch instead of each frame. PiperOrigin-RevId: 320396903
This commit is contained in:
parent
e8596428c0
commit
945471452f
1 changed files with 1 additions and 1 deletions
|
|
@ -631,7 +631,7 @@ public class MediaCodecAudioRenderer extends MediaCodecRenderer implements Media
|
||||||
if (codec != null) {
|
if (codec != null) {
|
||||||
codec.releaseOutputBuffer(bufferIndex, false);
|
codec.releaseOutputBuffer(bufferIndex, false);
|
||||||
}
|
}
|
||||||
decoderCounters.skippedOutputBufferCount++;
|
decoderCounters.skippedOutputBufferCount += sampleCount;
|
||||||
audioSink.handleDiscontinuity();
|
audioSink.handleDiscontinuity();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue