From d24de592a617ae258734922d39d70129fac6cae0 Mon Sep 17 00:00:00 2001 From: "Author: John Koleszar" Date: Wed, 1 Feb 2012 14:40:15 -0800 Subject: [PATCH] Import another decoder bug fix from public stable branch Please see the following for details: https://gerrit.chromium.org/gerrit/#change,10925 Change-Id: Ie692261c255c58d7762df22eeca566a7d13adcba --- vp8/decoder/decodemv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vp8/decoder/decodemv.c b/vp8/decoder/decodemv.c index c5e75d26d..5e00922e4 100644 --- a/vp8/decoder/decodemv.c +++ b/vp8/decoder/decodemv.c @@ -685,6 +685,7 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi, const int num_p = vp8_mbsplit_count [s]; int j = 0; + mbmi->need_to_clamp_mvs = 0; do /* for each subset j */ { int_mv leftmv, abovemv; @@ -729,7 +730,7 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi, break; } - mbmi->need_to_clamp_mvs = vp8_check_mv_bounds(&blockmv, + mbmi->need_to_clamp_mvs |= vp8_check_mv_bounds(&blockmv, mb_to_left_edge, mb_to_right_edge, mb_to_top_edge,