vdpau: Fix wrong calloc sizeof argument.
authorVinson Lee <vlee@freedesktop.org>
Sat, 23 May 2020 00:59:27 +0000 (17:59 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 4 Jun 2020 00:01:47 +0000 (17:01 -0700)
commit8b353524b04fa9cd77e21e2d036c69f1cff30c35
tree415a5e397f13ebf52ee98081eaceda38f7fd3afd
parent8252bb0ec6d429b09d944826d1ddbead69387f0f
vdpau: Fix wrong calloc sizeof argument.

Fix warning reported by Coverity Scan.

Wrong sizeof argument (SIZEOF_MISMATCH)
suspicious_sizeof: Passing argument 3544UL (sizeof
(vlVdpPresentationQueue)) to function calloc that returns a pointer of
type vlVdpPresentationQueueTarget * is suspicious because a multiple of
sizeof (vlVdpPresentationQueueTarget) /*16*/ is expected.

Fixes: 65fe0866aec7 ("vl: implemented a few functions and made stubs to get mplayer running")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3026
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5182>
src/gallium/frontends/vdpau/device.c