[FFmpeg-devel] [PATCH v2] avutil/vulkan_glslang: Fix build failure

Lynne dev at lynne.ee
Tue Dec 17 12:29:03 EET 2024


On 17/12/2024 15:55, Zhao Zhili wrote:
> From: Zhao Zhili <zhilizhao at tencent.com>
> 
> compile_only isn't available until 13.1.0. Let default initialization set
> it to zero, so the code works with version before and after 13.1.0.
> ---
>   libavutil/vulkan_glslang.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavutil/vulkan_glslang.c b/libavutil/vulkan_glslang.c
> index 9e1b8f4d8d..d116b35ec5 100644
> --- a/libavutil/vulkan_glslang.c
> +++ b/libavutil/vulkan_glslang.c
> @@ -192,7 +192,7 @@ static int glslc_shader_compile(FFVulkanContext *s, FFVkSPIRVCompiler *ctx,
>           .optimize_size = 0,
>           .disassemble = 0,
>           .validate = 1,
> -        .compile_only = 0,
> +        /* .compile_only = 0, */
>       };
>   #endif
>   

Thanks, pushed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA2FEA5F03F034464.asc
Type: application/pgp-keys
Size: 624 bytes
Desc: OpenPGP public key
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241217/ef42ae37/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241217/ef42ae37/attachment.sig>


More information about the ffmpeg-devel mailing list