Skip to content

Commit

Permalink
utils/libav: guard hwctx vulkan include
Browse files Browse the repository at this point in the history
Checks for the minimum required version before
attempting to include this header.

Fixes: https://trac.ffmpeg.org/ticket/11145
  • Loading branch information
haasn committed Aug 28, 2024
1 parent 1f2f6bf commit efb8934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/include/libplacebo/utils/libav_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <libavutil/hwcontext_vulkan.h>
# include <libplacebo/vulkan.h>
Expand Down

0 comments on commit efb8934

Please sign in to comment.