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 (cherry picked from commit e2821f10f5ad9d88ab30c7ea50b815cb8854801f)
This commit is contained in:
parent
2713f81fd0
commit
db1b5f148d
@ -2200,7 +2200,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||||||
Format format, long presentationTimestampUs, boolean isLastBuffer) {
|
Format format, long presentationTimestampUs, boolean isLastBuffer) {
|
||||||
checkStateNotNull(videoFrameProcessor);
|
checkStateNotNull(videoFrameProcessor);
|
||||||
checkState(videoFrameProcessorMaxPendingFrameCount != C.LENGTH_UNSET);
|
checkState(videoFrameProcessorMaxPendingFrameCount != C.LENGTH_UNSET);
|
||||||
checkState(!registeredLastFrame);
|
|
||||||
if (videoFrameProcessor.getPendingInputFrameCount()
|
if (videoFrameProcessor.getPendingInputFrameCount()
|
||||||
< videoFrameProcessorMaxPendingFrameCount) {
|
< videoFrameProcessorMaxPendingFrameCount) {
|
||||||
videoFrameProcessor.registerInputFrame();
|
videoFrameProcessor.registerInputFrame();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user