On Thu, Dec 02, 2021 at 07:01:08PM +0100, Lynne 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.

>  Makefile                  |    1 
>  hwcontext_vulkan.c        |   86 -------------------------------------
>  hwcontext_vulkan_common.c |  105 
> ++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 106 insertions(+), 86 deletions(-)
> 8ad8f8dbe2c3e9695073e7a05f406865ae04d0f9  
> 0001-hwcontext_vulkan-make-2-public-functions-always-avai.patch
> From ccd4aed173ea3e668ccf767d3a1ef6bef155ea48 Mon Sep 17 00:00:00 2001
> From: Lynne <d...@lynne.ee>
> Date: Thu, 2 Dec 2021 18:55:39 +0100
> Subject: [PATCH] hwcontext_vulkan: make 2 public functions always available

This breaks build on mingw64

In file included from src/libavutil/hwcontext_vulkan_common.c:19:0:
src/libavutil/hwcontext_vulkan.h:25:10: fatal error: vulkan/vulkan.h: No such 
file or directory
 #include <vulkan/vulkan.h>

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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".

Reply via email to