SDL: testffmpeg_vulkan: fix -Wincompatible-pointer-types warning

From c493b40cc31af1d246e3701f2e1c0ae15db8a78c Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 22 Mar 2024 00:23:07 +0100
Subject: [PATCH] testffmpeg_vulkan: fix -Wincompatible-pointer-types warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[1/1] Building C object test/CMakeFiles/testffmpeg.dir/testffmpeg_vulkan.c.o
/src/SDL/test/testffmpeg_vulkan.c: In function ‘BeginVulkanFrameRendering’:
/src/SDL/test/testffmpeg_vulkan.c:787:20: warning: passing argument 1 of ‘vk->lock_frame’ from incompatible pointer type [-Wincompatible-pointer-types]
787 | vk->lock_frame(frames, pVkFrame);
| ^~~~~~
| |
| AVHWFramesContext *
/src/SDL/test/testffmpeg_vulkan.c:787:20: note: expected ‘struct AVHWFramesContext *’ but argument is of type ‘AVHWFramesContext *’
/src/SDL/test/testffmpeg_vulkan.c: In function ‘FinishVulkanFrameRendering’:
/src/SDL/test/testffmpeg_vulkan.c:885:22: warning: passing argument 1 of ‘vk->unlock_frame’ from incompatible pointer type [-Wincompatible-pointer-types]
885 | vk->unlock_frame(frames, pVkFrame);
| ^~~~~~
| |
| AVHWFramesContext *
/src/SDL/test/testffmpeg_vulkan.c:885:22: note: expected ‘struct AVHWFramesContext *’ but argument is of type ‘AVHWFramesContext *’

---
 test/testffmpeg_vulkan.c | 3 ---
 test/testffmpeg_vulkan.h | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/test/testffmpeg_vulkan.c b/test/testffmpeg_vulkan.c
index 6a80505e73b63..23e71f30cc520 100644
--- a/test/testffmpeg_vulkan.c
+++ b/test/testffmpeg_vulkan.c
@@ -16,9 +16,6 @@
 
 #ifdef FFMPEG_VULKAN_SUPPORT
 
-#include <libavutil/hwcontext.h>
-#include <libavutil/hwcontext_vulkan.h>
-
 #define VULKAN_FUNCTIONS()                                             \
     VULKAN_GLOBAL_FUNCTION(vkCreateInstance)                           \
     VULKAN_GLOBAL_FUNCTION(vkEnumerateInstanceExtensionProperties)     \
diff --git a/test/testffmpeg_vulkan.h b/test/testffmpeg_vulkan.h
index 78cabced44a4a..593eae5ee846b 100644
--- a/test/testffmpeg_vulkan.h
+++ b/test/testffmpeg_vulkan.h
@@ -10,6 +10,7 @@
   freely.
 */
 
+#include <libavutil/hwcontext.h>
 #include <libavutil/hwcontext_vulkan.h>