[FFmpeg-devel] [PATCH v2] avutil/vulkan_glslang: Fix build failure
Zhao Zhili
quinkblack at foxmail.com
Tue Dec 17 08:55:15 EET 2024
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
--
2.46.0
More information about the ffmpeg-devel
mailing list