Commit 138581c4 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent deed77ff
...@@ -1273,6 +1273,7 @@ static void find_ref_mvs(VP9Context *s, ...@@ -1273,6 +1273,7 @@ static void find_ref_mvs(VP9Context *s,
} }
AV_ZERO32(pmv); AV_ZERO32(pmv);
clamp_mv(pmv, pmv, s);
#undef INVALID_MV #undef INVALID_MV
#undef RETURN_MV #undef RETURN_MV
#undef RETURN_SCALE_MV #undef RETURN_SCALE_MV
......
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