shithub: libvpx

Download patch

ref: 80f0e7a7d0e0b3637e71dcfa55089feabdff6b59
parent: fd0d7ff4c155b94d3f322addc7b66234b6908cc6
author: Michael Kohler <michaelkohler@live.com>
date: Mon Jul 12 14:41:45 EDT 2010

limit range checking code for L[k] to CONFIG_DEBUG. patch by timeless@gmail.com

--- a/vp8/decoder/decodemv.c
+++ b/vp8/decoder/decodemv.c
@@ -226,13 +226,14 @@
                         int mv_contz;
 
                         while (j != L[++k])
-                            if (k >= 16)
+                        {
 #if CONFIG_DEBUG
+                            if (k >= 16)
+                            {
                                 assert(0);
-
-#else
-                                ;
+                            }
 #endif
+                        }
 
                         mv_contz = vp8_mv_cont(&(vp8_left_bmi(mi, k)->mv.as_mv), &(vp8_above_bmi(mi, k, mis)->mv.as_mv));