| 1 | Patch-Source: https://github.com/FFmpeg/FFmpeg/commit/cc76e8340d28438c1ac56ee7dfd774d25e944264
|
| 2 | --
|
| 3 | From cc76e8340d28438c1ac56ee7dfd774d25e944264 Mon Sep 17 00:00:00 2001
|
| 4 | From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]>
|
| 5 | Date: Thu, 2 Mar 2023 17:27:30 +0100
|
| 6 | Subject: [PATCH] lavu/vulkan: fix handle type for 32-bit targets
|
| 7 | MIME-Version: 1.0
|
| 8 | Content-Type: text/plain; charset=UTF-8
|
| 9 | Content-Transfer-Encoding: 8bit
|
| 10 |
|
| 11 | Fixes compilation with clang which errors out on Wint-conversion.
|
| 12 |
|
| 13 | Signed-off-by: Kacper Michajłow <[email protected]>
|
| 14 | Signed-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 |
|
| 20 | diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
|
| 21 | index 2e3faaa..7d311ee 100644
|
| 22 | |
| 23 | |
| 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)
|