Browse Source

avfilter/vf_minterpolate: Use dx and dy

Fixes CID1396283 and CID1396284

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3
Michael Niedermayer 9 years ago
parent
commit
855305fac2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_minterpolate.c

+ 1
- 1
libavfilter/vf_minterpolate.c 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++)


Loading…
Cancel
Save