On Thu, Dec 2, 2021 at 3:01 PM Lynne <d...@lynne.ee> wrote: > The issue is that if ffmpeg is compiled without Vulkan, and an API > user includes and uses the functions exposed in hwcontext_vulkan.h, > then a linking error will happen, as the hwcontext_vulkan.c file has > not been compiled. > > Move the functions to another file, and make it always compiled. The > functions do not use any Vulkan functions. > > Patch attached. >
Do what avcodec/d3d11va.c does in this new file and return NULL/ENOSYS when CONFIG_VULKAN is 0. You have to because all the Vulkan pixfmt defines will not be available on environments without the Vulkan headers. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".