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
This commit is contained in:
huangdarwin 2023-05-31 12:04:35 +00:00 committed by Tofunmi Adigun-Hameed
parent 49ea280bb8
commit e2821f10f5

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();