From 80f0e7a7d0e0b3637e71dcfa55089feabdff6b59 Mon Sep 17 00:00:00 2001 From: Michael Kohler Date: Mon, 12 Jul 2010 18:41:45 +0200 Subject: [PATCH] limit range checking code for L[k] to CONFIG_DEBUG. patch by timeless@gmail.com --- vp8/decoder/decodemv.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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)); -- 2.7.4