[FFmpeg-cvslog] vp9: clamp final zero MV if find_ref_mvs() found no suitable candidates.
Ronald S. Bultje
git at videolan.org
Mon Jun 1 17:32:46 CEST 2015
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Mon Jun 1 11:17:44 2015 -0400| [138581c41a129bdc86b97230d63dfc7fc98271a4] | committer: 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: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=138581c41a129bdc86b97230d63dfc7fc98271a4
---
libavcodec/vp9.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 93b3c96..c4efd42 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
More information about the ffmpeg-cvslog
mailing list