shithub: libvpx

Download patch

ref: a0824678919e5528760b0267d4c88d05fef0263e
parent: 08cf9faed0ac907a14ee83c9b1d99dd57fd89be6
author: Scott LaVarnway <slavarnway@google.com>
date: Thu Sep 13 09:37:24 EDT 2012

Moved mb_no_coeff_skip flag read

from vp8_decode_frame() to mb_mode_mv_init()

Change-Id: I267fd764a4c826d62e6799dceb1b8fb5f97fde6d

--- a/vp8/decoder/decodemv.c
+++ b/vp8/decoder/decodemv.c
@@ -159,6 +159,9 @@
      * 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);
--- a/vp8/decoder/decodframe.c
+++ b/vp8/decoder/decodframe.c
@@ -1394,10 +1394,6 @@
     /* 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