From 855305fac2399c0d484f51be4e6bb67e520835e0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 30 Mar 2017 22:24:47 +0200 Subject: [PATCH] avfilter/vf_minterpolate: Use dx and dy Fixes CID1396283 and CID1396284 Signed-off-by: Michael Niedermayer --- libavfilter/vf_minterpolate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c index 3da696b15e..6c5c264005 100644 --- a/libavfilter/vf_minterpolate.c +++ b/libavfilter/vf_minterpolate.c @@ -654,7 +654,7 @@ static int cluster_mvs(MIContext *mi_ctx) dx = avg_x - mv_x; dy = avg_y - mv_y; - if (FFABS(avg_x - mv_x) > CLUSTER_THRESHOLD || FFABS(avg_y - mv_y) > CLUSTER_THRESHOLD) { + if (FFABS(dx) > CLUSTER_THRESHOLD || FFABS(dy) > CLUSTER_THRESHOLD) { for (d = 1; d < 5; d++) for (y = FFMAX(mb_y - d, 0); y < FFMIN(mb_y + d + 1, mi_ctx->b_height); y++)