mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-10 06:14:01 +00:00
avfilter/vf_minterpolate: Use dx and dy
Fixes CID1396283 and CID1396284 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4798237f01
commit
855305fac2
@ -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…
x
Reference in New Issue
Block a user