GMBVFPool: bail if VideoFrame format forces change of OutputFormat
ClusterFuzz encountered an issue if a given VideoFrame comes and causes a change of OutputFormat: in the bug below, an I420 VF was received after a series of I420A ones, and caused a crash when the alpha channel was accessed. This might happen more generally if the received VideoFrames cause a change of OutputFormat and we access what we don't have. This CL addresses that by comparing the current |output_format_| with what is derived out of the incoming VideoFrame. If they differ, we just bail. Bug: 875158, 875670 Change-Id: I961b5bf95651a3888482957ee0b7acd48149d467 Reviewed-on: https://chromium-review.googlesource.com/1180543 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#584574}
Showing
Please register or sign in to comment