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

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


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

avutil/hwcontext_d3d11va: correct sizeof AVD3D11FrameDescriptor

Fixes: CID1591909 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 698ed0d5a5a3a1219179facb5538eea463fae13f)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c
index c8ae58f908..17320f6eb9 100644
--- a/libavutil/hwcontext_d3d11va.c
+++ b/libavutil/hwcontext_d3d11va.c
@@ -164,7 +164,7 @@ static AVBufferRef *wrap_texture_buf(ID3D11Texture2D *tex, int index)
     desc->texture = tex;
     desc->index   = index;
 
-    buf = av_buffer_create((uint8_t *)desc, sizeof(desc), free_texture, tex, 0);
+    buf = av_buffer_create((uint8_t *)desc, sizeof(*desc), free_texture, tex, 0);
     if (!buf) {
         ID3D11Texture2D_Release(tex);
         av_free(desc);



More information about the ffmpeg-cvslog mailing list