media/gpu/v4l2: validate DMAbuf buffers against current format
Queuing DMAbuf buffers require some safety checks to be performed, especially regarding the number of FDs submitted and their use of offset. We used to have an ad-hoc verification function in V4L2SliceVideoDecoder, but now that V4L2Queue is aware of the current format we can move that check there, where it ought to be. Bug: 1003223 Test: video_decode_accelerator_tests passing on Kevin. Change-Id: Ic5d960c626c4146059311fb1633c25a3e207793f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1839320 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Auto-Submit: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Cr-Commit-Position: refs/heads/master@{#703205}
Showing
Please register or sign in to comment