shithub: libvpx

Download patch

ref: d24de592a617ae258734922d39d70129fac6cae0
parent: caed92d0e50ce573bd316f6a9e02449fd310b048
author: Author: John Koleszar <jkoleszar@google.com>
date: Wed Feb 1 09:40:15 EST 2012

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

--- a/vp8/decoder/decodemv.c
+++ b/vp8/decoder/decodemv.c
@@ -685,6 +685,7 @@
             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 @@
                     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,