]> granicus.if.org Git - libvpx/commitdiff
Moved mb_no_coeff_skip flag read
authorScott LaVarnway <slavarnway@google.com>
Thu, 13 Sep 2012 20:37:24 +0000 (13:37 -0700)
committerScott LaVarnway <slavarnway@google.com>
Thu, 13 Sep 2012 20:37:24 +0000 (13:37 -0700)
from vp8_decode_frame() to mb_mode_mv_init()

Change-Id: I267fd764a4c826d62e6799dceb1b8fb5f97fde6d

vp8/decoder/decodemv.c
vp8/decoder/decodframe.c

index f0daf55c1c50278b59c525d181b98df874b97cba..838a31b85e40b12fe5c49a98067a9796dc570174 100644 (file)
@@ -159,6 +159,9 @@ static void mb_mode_mv_init(VP8D_COMP *pbi)
      * outside the frame. */
     pbi->mvs_corrupt_from_mb = UINT_MAX;
 #endif
+    /* Read the mb_no_coeff_skip flag */
+    pbi->common.mb_no_coeff_skip = (int)vp8_read_bit(bc);
+
     pbi->prob_skip_false = 0;
     if (pbi->common.mb_no_coeff_skip)
         pbi->prob_skip_false = (vp8_prob)vp8_read_literal(bc, 8);
index ea8798f477dd1c99172eea90710cee50a1a65417..3eb0d67c299a74e1e997dc0215b288413ad220ec 100644 (file)
@@ -1394,10 +1394,6 @@ int vp8_decode_frame(VP8D_COMP *pbi)
     /* clear out the coeff buffer */
     vpx_memset(xd->qcoeff, 0, sizeof(xd->qcoeff));
 
-    /* Read the mb_no_coeff_skip flag */
-    pc->mb_no_coeff_skip = (int)vp8_read_bit(bc);
-
-
     vp8_decode_mode_mvs(pbi);
 
 #if CONFIG_ERROR_CONCEALMENT