[FFmpeg-devel] [PATCH] avfilter/vf_scale_vulkan: Fix typo

Zhao Zhili quinkblack at foxmail.com
Fri Feb 23 09:07:44 EET 2024


From: Zhao Zhili <zhilizhao at tencent.com>

Fix #10875
---
 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) {
-- 
2.25.1



More information about the ffmpeg-devel mailing list