13 lines
407 B
Diff
13 lines
407 B
Diff
--- 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];
|