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 e2821f10f5ad9d88ab30c7ea50b815cb8854801f)
This commit is contained in:
huangdarwin 2023-05-31 12:04:35 +00:00 committed by Tofunmi Adigun-Hameed
parent 2713f81fd0
commit db1b5f148d

View File

@ -2200,7 +2200,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();