mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
vulkan_decode: check if yuv_sampler exists before freeing it
This prevents multiple NULL accesses - if yuv_sampler exists, then everything required for it to be destroyed also exists.
This commit is contained in:
parent
58f82fc26a
commit
bae92361ed
@ -581,6 +581,7 @@ static void free_common(void *opaque, uint8_t *data)
|
||||
|
||||
ff_vk_video_common_uninit(s, &ctx->common);
|
||||
|
||||
if (ctx->yuv_sampler)
|
||||
vk->DestroySamplerYcbcrConversion(s->hwctx->act_dev, ctx->yuv_sampler,
|
||||
s->hwctx->alloc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user