[FFmpeg-cvslog] avutil/hwcontext_d3d11va: correct sizeof IDirect3DSurface9

Michael Niedermayer git at videolan.org
Wed Jul 24 17:49:34 EEST 2024


ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Sun Jun  9 17:47:43 2024 +0200| [cc5694cc02257a94b238949f9bc2541ee58979ab] | committer: Michael Niedermayer

avutil/hwcontext_d3d11va: correct sizeof IDirect3DSurface9

Fixes: CID1591944 Wrong sizeof argument

Sponsored-by: Sovereign Tech Fund
Reviewed-by: Steve Lhomme <robux4 at ycbcr.xyz>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 628ba061c8d5ae018c3e8aa8ce05b8dfcdfd8410)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc5694cc02257a94b238949f9bc2541ee58979ab
---

 libavutil/hwcontext_dxva2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c
index 64366cea89..df4ec37ae7 100644
--- a/libavutil/hwcontext_dxva2.c
+++ b/libavutil/hwcontext_dxva2.c
@@ -133,7 +133,7 @@ static AVBufferRef *dxva2_pool_alloc(void *opaque, int 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;



More information about the ffmpeg-cvslog mailing list