From: Zhao Zhili <zhiliz...@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".