From 138581c41a129bdc86b97230d63dfc7fc98271a4 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 1 Jun 2015 11:17:44 -0400 Subject: [PATCH] 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 --- libavcodec/vp9.c | 1 + 1 file changed, 1 insertion(+) 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