[FFmpeg-cvslog] avfilter/vf_scale_vulkan: Fix typo

Zhao Zhili git at videolan.org
Fri Mar 1 12:11:05 EET 2024


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Fri Feb 23 15:07:44 2024 +0800| [ab8aab5e2f403d7ca1e1fd7a237e610ae8c12711] | committer: Zhao Zhili

avfilter/vf_scale_vulkan: Fix typo

Fix #10875

Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>

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

 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) {



More information about the ffmpeg-cvslog mailing list