avfilter/vf_minterpolate: Use dx and dy

Fixes CID1396283 and CID1396284

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2017-03-30 22:24:47 +02:00
parent 4798237f01
commit 855305fac2
1 changed files with 1 additions and 1 deletions

View File

@ -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++)