aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-06-01 11:17:44 -0400
committerMichael Niedermayer <michaelni@gmx.at>2015-06-01 17:23:34 +0200
commit138581c41a129bdc86b97230d63dfc7fc98271a4 (patch)
tree484e00cac7613a84f93a99d99d40653eae7cef6d /libavcodec/vp9.c
parentdeed77ffeecae9e2ddb8f2955b476cd7e8b9b959 (diff)
downloadffmpeg-138581c41a129bdc86b97230d63dfc7fc98271a4.tar.gz
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>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 93b3c96e23..c4efd42baf 100644
--- a/libavcodec/vp9.c
+++ b/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