13 lines
447 B
Diff
13 lines
447 B
Diff
--- a/libavutil/vulkan.c
|
|
+++ b/libavutil/vulkan.c
|
|
@@ -671,6 +671,9 @@ int ff_vk_exec_add_dep_frame(FFVulkanContext *s, FFVkExecContext *e, AVFrame *f,
|
|
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];
|