Commit 855305fa authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_minterpolate: Use dx and dy

Fixes CID1396283 and CID1396284
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4798237f
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment