* [FFmpeg-devel] [PATCH 2/2] libavfilter/vf_minterpolate: Use local variable in array
@ 2025-08-29 20:19 Zsolt Vadász via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: Zsolt Vadász via ffmpeg-devel @ 2025-08-29 20:19 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Zsolt Vadász
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-29 20:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-29 20:19 [FFmpeg-devel] [PATCH 2/2] libavfilter/vf_minterpolate: Use local variable in array Zsolt Vadász via ffmpeg-devel
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