Signed-off-by: Zsolt Vadasz <zsolt_vad...@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-le...@ffmpeg.org

Reply via email to