blob: 0ba6f756264eb130e45f2f28f6d91c0e16cbab78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- 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];
|