Remove unnecessary setInputFormat

setInputFormat calls registerInputStream and will cause VideoFrameProcessor to
reconfigure. We don't need to call it when setting up the VFP
(in `onReadyToInitCodec()`). Rather, we wait until `onOutputFormatChanged()`
called (this output format refers to mediaCodec's outptut format) to register
the input stream.

PiperOrigin-RevId: 553448633
This commit is contained in:
claincly 2023-08-03 12:42:00 +00:00 committed by Tianyi Feng
parent dfd668238a
commit ed1ff222bb

View File

@ -2166,7 +2166,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
outputSurfaceSize.getHeight())); outputSurfaceSize.getHeight()));
} }
setInputFormat(inputFormat);
return true; return true;
} }