mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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:
parent
49ea280bb8
commit
e2821f10f5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user