limit range checking code for L[k] to CONFIG_DEBUG. patch by timeless@gmail.com
authorMichael Kohler <michaelkohler@live.com>
Mon, 12 Jul 2010 16:41:45 +0000 (18:41 +0200)
committerMichael Kohler <michaelkohler@live.com>
Mon, 12 Jul 2010 16:41:45 +0000 (18:41 +0200)
vp8/decoder/decodemv.c

index 44b98e7..4f24b44 100644 (file)
@@ -226,13 +226,14 @@ void vp8_decode_mode_mvs(VP8D_COMP *pbi)
                         int mv_contz;
 
                         while (j != L[++k])
                         int mv_contz;
 
                         while (j != L[++k])
-                            if (k >= 16)
+                        {
 #if CONFIG_DEBUG
 #if CONFIG_DEBUG
+                            if (k >= 16)
+                            {
                                 assert(0);
                                 assert(0);
-
-#else
-                                ;
+                            }
 #endif
 #endif
+                        }
 
                         mv_contz = vp8_mv_cont(&(vp8_left_bmi(mi, k)->mv.as_mv), &(vp8_above_bmi(mi, k, mis)->mv.as_mv));
 
 
                         mv_contz = vp8_mv_cont(&(vp8_left_bmi(mi, k)->mv.as_mv), &(vp8_above_bmi(mi, k, mis)->mv.as_mv));