From: "Zsolt Vadász via ffmpeg-devel" <ffmpeg-devel@ffmpeg.org> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: "Zsolt Vadász" <zsolt_vadasz@protonmail.com> Subject: [FFmpeg-devel] [PATCH 2/2] libavfilter/vf_minterpolate: Use local variable in array Date: Fri, 29 Aug 2025 20:19:53 +0000 Message-ID: <8eG59yBHbAH6xN0au7UsUj5G5Ge-0EPjbkGRBnToosWITBAlZKpfg19bz0s2-uLnmeOtH7LCjKEJsyxcl1TPAAw48N-Ol-TZrqae40Mlxis=@protonmail.com> (raw) Signed-off-by: Zsolt Vadasz <zsolt_vadasz@protonmail.com> --- libavfilter/vf_minterpolate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c index 2406259056..ba5c512e03 100644 --- a/libavfilter/vf_minterpolate.c +++ b/libavfilter/vf_minterpolate.c @@ -918,9 +918,9 @@ static void set_frame_data(MIContext *mi_ctx, int alpha, AVFrame *avf_out) int x_mv, y_mv; int weight_sum = 0; int i, val = 0; - PixelMVS *pixel_mvs = &mi_ctx->pixel_mvs[x + y * avf_out->width]; - PixelWeights *pixel_weights = &mi_ctx->pixel_weights[x + y * avf_out->width]; - PixelRefs *pixel_refs = &mi_ctx->pixel_refs[x + y * avf_out->width]; + PixelMVS *pixel_mvs = &mi_ctx->pixel_mvs[x + y * width]; + PixelWeights *pixel_weights = &mi_ctx->pixel_weights[x + y * width]; + PixelRefs *pixel_refs = &mi_ctx->pixel_refs[x + y * width]; for (i = 0; i < pixel_refs->nb; i++) weight_sum += pixel_weights->weights[i]; -- 2.51.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
reply other threads:[~2025-08-29 20:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='8eG59yBHbAH6xN0au7UsUj5G5Ge-0EPjbkGRBnToosWITBAlZKpfg19bz0s2-uLnmeOtH7LCjKEJsyxcl1TPAAw48N-Ol-TZrqae40Mlxis=@protonmail.com' \ --to=ffmpeg-devel@ffmpeg.org \ --cc=zsolt_vadasz@protonmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git