diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-30 22:24:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-30 22:46:31 +0200 |
commit | 855305fac2399c0d484f51be4e6bb67e520835e0 (patch) | |
tree | 9134b2e1f77ea2c732d52e160bffa4cede84e589 /libavfilter | |
parent | 4798237f01cf7f27e5528bbbfdc6ef40a0b50660 (diff) | |
download | ffmpeg-streaming-855305fac2399c0d484f51be4e6bb67e520835e0.zip ffmpeg-streaming-855305fac2399c0d484f51be4e6bb67e520835e0.tar.gz |
avfilter/vf_minterpolate: Use dx and dy
Fixes CID1396283 and CID1396284
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_minterpolate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c index 3da696b..6c5c264 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++) |