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:
parent
dfd668238a
commit
ed1ff222bb
@ -2166,7 +2166,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||
outputSurfaceSize.getHeight()));
|
||||
}
|
||||
|
||||
setInputFormat(inputFormat);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user