Skip to content

Commit

Permalink
Exoplayer: Suppress check to allow video to run ahead of Audio.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dway123 authored and tof-tof committed May 31, 2023
1 parent d7f4fea commit 2ff8b44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ public boolean maybeRegisterFrame(
Format format, long presentationTimestampUs, boolean isLastBuffer) {
checkStateNotNull(videoFrameProcessor);
checkState(videoFrameProcessorMaxPendingFrameCount != C.LENGTH_UNSET);
checkState(!registeredLastFrame);

if (videoFrameProcessor.getPendingInputFrameCount()
< videoFrameProcessorMaxPendingFrameCount) {
videoFrameProcessor.registerInputFrame();
Expand Down

0 comments on commit 2ff8b44

Please sign in to comment.