V4L2SVDA: Validate visible rectangle.
This CL adds a check in V4L2SliceVideoDecodeAccelerator::CreateOutputBuffers() to ensure that the visible rectangle is contained within the coded size. Note that there are analogous checks in VAAPI [1] and V4L2VDA [2]. [1] https://source.chromium.org/chromium/chromium/src/+/master:media/gpu/vaapi/vaapi_video_decode_accelerator.cc;l=455-458;drc=43a49df1600f4828a16317757aab3b2eb1478287?originalUrl=https:%2F%2Fcs.chromium.org%2F [2] https://source.chromium.org/chromium/chromium/src/+/master:media/gpu/v4l2/v4l2_video_decode_accelerator.cc;l=2262-2266;drc=008125344bd4814259607c541da5e6a792dc06ff?originalUrl=https:%2F%2Fcs.chromium.org%2F Bug: 1062002 Test: normal playback still works on kevin and krane. Change-Id: I5dd13e92822b20bb6dadbbea6b48a4bc06ed7a20 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2131416 Auto-Submit: Andres Calderon Jaramillo <andrescj@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#755271}
Showing
Please register or sign in to comment