[FFmpeg-devel] [PATCH] vulkan_decode: check if yuv_sampler exists before freeing it

Philip Langdale philipl at overt.org
Mon May 29 04:20:37 EEST 2023


On Mon, 29 May 2023 02:22:34 +0200 (CEST)
Lynne <dev at lynne.ee> wrote:

> No Vulkan function is NULL-safe, for no real reason, despite
> the language defining and returning VK_NULL_HANDLE.
> 
> Patch attached.
> 

Tested and works. I will note that both the function and s->hwctx are
null in the failure case and if ctx->sampler could exist without those
also being non-null, you could segfault again. I assume this won't
happen in practice.

ship it.

--phil


More information about the ffmpeg-devel mailing list