SDL: testffmpeg: only enable AV_PIX_FMT_VULKAN if we have a Vulkan renderer

From 2d4105ba8b2cf43ead334b27b219bf575a4204f0 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 4 Mar 2024 10:51:58 -0800
Subject: [PATCH] testffmpeg: only enable AV_PIX_FMT_VULKAN if we have a Vulkan
 renderer

---
 test/testffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/testffmpeg.c b/test/testffmpeg.c
index 03807a9ae5a2..c9811d63a5ae 100644
--- a/test/testffmpeg.c
+++ b/test/testffmpeg.c
@@ -338,7 +338,7 @@ static SDL_bool SupportedPixelFormat(enum AVPixelFormat format)
             return SDL_TRUE;
         }
 #endif
-        if (format == AV_PIX_FMT_VULKAN) {
+        if (vulkan_context && format == AV_PIX_FMT_VULKAN) {
             return SDL_TRUE;
         }
     }