mirror of https://git.ffmpeg.org/ffmpeg.git
avutil/hwcontext_d3d11va: correct sizeof AVD3D11FrameDescriptor
Fixes: CID1591909 Wrong sizeof argument
Sponsored-by: Sovereign Tech Fund
Reviewed-by: Steve Lhomme <robux4@ycbcr.xyz>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 698ed0d5a5
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
443a1af5b7
commit
15e9ddc7d5
|
@ -163,7 +163,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);
|
||||
|
|
Loading…
Reference in New Issue