--- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -606,6 +606,9 @@ int ff_vk_exec_add_dep_frame(FFVulkanCon uint32_t *queue_family_dst; VkAccessFlagBits *access_dst; + if (!f || !f->hw_frames_ctx) + return 1; + AVHWFramesContext *hwfc = (AVHWFramesContext *)f->hw_frames_ctx->data; AVVulkanFramesContext *vkfc = hwfc->hwctx; AVVkFrame *vkf = (AVVkFrame *)f->data[0];