Commit ff7dc13b by huangdarwin Committed by Tofunmi Adigun-Hameed

Exoplayer: Suppress check to allow video to run ahead of Audio.

Otherwise, texture output errors out if video decoding decodes faster than audio,
hitting the end of the file, while audio is still in the middle of the file.

PiperOrigin-RevId: 536679568
(cherry picked from commit 2ff8b446e648883144687c4c020b2d23a0b4e1d3)
parent a7137cb8
......@@ -2196,7 +2196,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
Format format, long presentationTimestampUs, boolean isLastBuffer) {
checkStateNotNull(videoFrameProcessor);
checkState(videoFrameProcessorMaxPendingFrameCount != C.LENGTH_UNSET);
checkState(!registeredLastFrame);
if (videoFrameProcessor.getPendingInputFrameCount()
< videoFrameProcessorMaxPendingFrameCount) {
videoFrameProcessor.registerInputFrame();
......
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