[FFmpeg-cvslog] ffv1enc_vulkan: fix array overflow

Maxime Gervais git at videolan.org
Fri May 23 20:30:58 EEST 2025


ffmpeg | branch: master | Maxime Gervais <maxime at mediaarea.net> | Fri May 23 16:20:41 2025 +0200| [cbdb5e2477ce6acf64bc85580c6cc1a55ac6f991] | committer: Lynne

ffv1enc_vulkan: fix array overflow

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cbdb5e2477ce6acf64bc85580c6cc1a55ac6f991
---

 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-cvslog mailing list