mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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
1 changed files with 0 additions and 1 deletions
|
|
@ -2166,7 +2166,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||||
outputSurfaceSize.getHeight()));
|
outputSurfaceSize.getHeight()));
|
||||||
}
|
}
|
||||||
|
|
||||||
setInputFormat(inputFormat);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue