aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-06-09 17:47:43 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-10 18:10:09 +0200
commit628ba061c8d5ae018c3e8aa8ce05b8dfcdfd8410 (patch)
treee32e22113f27da153f043ea131f389d8cb80c4c0 /libavutil
parentcf22f944d55c8eb0119fb20354a625f8c41eb11f (diff)
downloadffmpeg-628ba061c8d5ae018c3e8aa8ce05b8dfcdfd8410.tar.gz
avutil/hwcontext_d3d11va: correct sizeof IDirect3DSurface9
Fixes: CID1591944 Wrong sizeof argument Sponsored-by: Sovereign Tech Fund Reviewed-by: Steve Lhomme <robux4@ycbcr.xyz> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hwcontext_dxva2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c
index 03cb739a7f..0b76966ebf 100644
--- a/libavutil/hwcontext_dxva2.c
+++ b/libavutil/hwcontext_dxva2.c
@@ -147,7 +147,7 @@ static AVBufferRef *dxva2_pool_alloc(void *opaque, size_t size)
if (s->nb_surfaces_used < hwctx->nb_surfaces) {
s->nb_surfaces_used++;
return av_buffer_create((uint8_t*)s->surfaces_internal[s->nb_surfaces_used - 1],
- sizeof(*hwctx->surfaces), dxva2_pool_release_dummy, 0, 0);
+ sizeof(**hwctx->surfaces), dxva2_pool_release_dummy, 0, 0);
}
return NULL;