[FFmpeg-devel] [PATCH] vp9: clamp final zero MV if find_ref_mvs() found no suitable candidates.
Ronald S. Bultje
rsbultje at gmail.com
Mon Jun 1 17:17:44 CEST 2015
This may actually result in a non-zero MV. Fixes ticket 4583.
---
libavcodec/vp9.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 7f28b26..244eb0c 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -1272,6 +1272,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
--
2.1.2
More information about the ffmpeg-devel
mailing list