---
 libavutil/vulkan.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index fe5affa72a..c2a3b5cfa3 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -446,6 +446,11 @@ VkResult ff_vk_exec_get_query(FFVulkanContext *s, 
FFVkExecContext *e,
     if (!e->had_submission)
         return VK_INCOMPLETE;
 
+    if (!e->query_data) {
+        av_log(s, AV_LOG_ERROR, "Requested a query with a NULL query_data 
pointer!\n");
+        return VK_INCOMPLETE;
+    }
+
     qf |= pool->query_64bit ?
           VK_QUERY_RESULT_64_BIT : 0x0;
     qf |= pool->query_statuses ?
-- 
2.45.2.753.g447d99e1c3b
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to