From ab8aab5e2f403d7ca1e1fd7a237e610ae8c12711 Mon Sep 17 00:00:00 2001
From: Zhao Zhili <zhilizhao@tencent.com>
Date: Fri, 23 Feb 2024 15:07:44 +0800
Subject: [PATCH] avfilter/vf_scale_vulkan: Fix typo

Fix #10875

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
---
 libavfilter/vf_scale_vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_scale_vulkan.c b/libavfilter/vf_scale_vulkan.c
index a1cf8b1aeb..7210509de3 100644
--- a/libavfilter/vf_scale_vulkan.c
+++ b/libavfilter/vf_scale_vulkan.c
@@ -204,7 +204,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
     GLSLC(0,                                                                 );
 
     if (s->vkctx.output_format == s->vkctx.input_format) {
-        for (int i = 0; i < desc[i].elems; i++) {
+        for (int i = 0; i < desc[1].elems; i++) {
             GLSLF(1,  size = imageSize(output_img[%i]);                    ,i);
             GLSLC(1,  if (IS_WITHIN(pos, size)) {                            );
             switch (s->scaler) {