projects/aports·blob master · refs

32 lines · 1.2 KiB

1Patch-Source: https://github.com/FFmpeg/FFmpeg/commit/cc76e8340d28438c1ac56ee7dfd774d25e944264
2--
3From cc76e8340d28438c1ac56ee7dfd774d25e944264 Mon Sep 17 00:00:00 2001
4From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]>
5Date: Thu, 2 Mar 2023 17:27:30 +0100
6Subject: [PATCH] lavu/vulkan: fix handle type for 32-bit targets
7MIME-Version: 1.0
8Content-Type: text/plain; charset=UTF-8
9Content-Transfer-Encoding: 8bit
10
11Fixes compilation with clang which errors out on Wint-conversion.
12
13Signed-off-by: Kacper Michajłow <[email protected]>
14Signed-off-by: Martin Storsjö <[email protected]>
15---
16 libavutil/hwcontext_vulkan.c | 2 +-
17 libavutil/vulkan.h | 4 ++++
18 2 files changed, 5 insertions(+), 1 deletion(-)
19
20diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
21index 2e3faaa..7d311ee 100644
22--- a/libavutil/hwcontext_vulkan.c
23+++ b/libavutil/hwcontext_vulkan.c
24@@ -862,7 +862,7 @@ static void free_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd)
25
26 av_freep(&cmd->queues);
27 av_freep(&cmd->bufs);
28- cmd->pool = NULL;
29+ cmd->pool = VK_NULL_HANDLE;
30 }
31
32 static VkCommandBuffer get_buf_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd)