From: Michael Kohler Date: Mon, 12 Jul 2010 16:41:45 +0000 (+0200) Subject: limit range checking code for L[k] to CONFIG_DEBUG. patch by timeless@gmail.com X-Git-Tag: 1.0_branch~977^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80f0e7a7d0e0b3637e71dcfa55089feabdff6b59;p=profile%2Fivi%2Flibvpx.git limit range checking code for L[k] to CONFIG_DEBUG. patch by timeless@gmail.com --- diff --git a/vp8/decoder/decodemv.c b/vp8/decoder/decodemv.c index 44b98e7..4f24b44 100644 --- a/vp8/decoder/decodemv.c +++ b/vp8/decoder/decodemv.c @@ -226,13 +226,14 @@ void vp8_decode_mode_mvs(VP8D_COMP *pbi) 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));