mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
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> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
7396773e53
commit
36be4e6aa9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user