vp9: clamp final zero MV if find_ref_mvs() found no suitable candidates.

This may actually result in a non-zero MV. Fixes ticket 4583.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/136/head
Ronald S. Bultje 10 years ago committed by Michael Niedermayer
parent deed77ffee
commit 138581c41a
  1. 1
      libavcodec/vp9.c

@ -1273,6 +1273,7 @@ static void find_ref_mvs(VP9Context *s,
}
AV_ZERO32(pmv);
clamp_mv(pmv, pmv, s);
#undef INVALID_MV
#undef RETURN_MV
#undef RETURN_SCALE_MV

Loading…
Cancel
Save