From efb89342b0c19b9773226624651839686172e88b Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 28 Aug 2024 16:57:29 +0200 Subject: [PATCH] utils/libav: guard hwctx vulkan include Checks for the minimum required version before attempting to include this header. Fixes: https://trac.ffmpeg.org/ticket/11145 --- src/include/libplacebo/utils/libav_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/libplacebo/utils/libav_internal.h b/src/include/libplacebo/utils/libav_internal.h index 232aeb5c..06b151b6 100644 --- a/src/include/libplacebo/utils/libav_internal.h +++ b/src/include/libplacebo/utils/libav_internal.h @@ -40,7 +40,8 @@ #endif #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 11, 100) && \ - defined(PL_HAVE_VULKAN) && defined(VK_API_VERSION_1_2) + defined(PL_HAVE_VULKAN) && defined(VK_API_VERSION_1_2) && \ + VK_HEADER_VERSION >= 175 # define PL_HAVE_LAV_VULKAN # include # include