[FFmpeg-devel] [PATCH] ffv1enc_vulkan: fix array overflow
Jerome Martinez
jerome at mediaarea.net
Fri May 23 17:38:58 EEST 2025
Fix a crash (some GCC) or silent quit (Microsoft compiler) after
"[PATCH 06/16] ffv1enc_vulkan: switch to 2-line cache, unify prediction
code"
https://ffmpeg.org/pipermail/ffmpeg-devel/2025-May/343502.html
-------------- next part --------------
From: Maxime Gervais <maxime at mediaarea.net>
Date: Fri, 23 May 2025 16:20:41 +0200
Subject: [PATCH] ffv1enc_vulkan: fix array overflow
---
libavcodec/ffv1enc_vulkan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/ffv1enc_vulkan.c b/libavcodec/ffv1enc_vulkan.c
index d9e12f5fae..15aaddac98 100644
--- a/libavcodec/ffv1enc_vulkan.c
+++ b/libavcodec/ffv1enc_vulkan.c
@@ -1358,6 +1358,8 @@ static int init_encode_shader(AVCodecContext *avctx, FFVkSPIRVCompiler *spv)
.mem_quali = "writeonly",
.buf_content = "uint64_t slice_results[2048];",
},
+ { /* place holder for desc_set[3] */
+ },
};
if (fv->is_rgb) {
AVHWFramesContext *intermediate_frames_ctx;
More information about the ffmpeg-devel
mailing list