shithub: libvpx

Download patch

ref: 0078d2f3dc2b932f4eb8128d32473a84af1bde26
parent: 55f2f14f107c557d53abc845ed5b248acddfa15f
author: James Zern <jzern@google.com>
date: Mon Nov 5 13:09:07 EST 2012

vp9/encoder/bitstream.c: fix unused variable warnings

Change-Id: Ibfac7e000509d2017eac9a108060e534a19fec33

--- a/vp9/encoder/bitstream.c
+++ b/vp9/encoder/bitstream.c
@@ -186,7 +186,6 @@
 
 void vp9_update_skip_probs(VP9_COMP *cpi) {
   VP9_COMMON *const pc = &cpi->common;
-  int prob_skip_false[3] = {0, 0, 0};
   int k;
 
   for (k = 0; k < MBSKIP_CONTEXTS; ++k) {
@@ -1313,7 +1312,6 @@
                               const MODE_INFO   *m,
                               int                mode_info_stride,
                               vp9_writer *const  bc) {
-  const int mis = mode_info_stride;
   int ym;
   int segment_id;
 
@@ -1329,6 +1327,7 @@
        (vp9_get_segdata(xd, segment_id, SEG_LVL_EOB) != 0))) {
         int skip_coeff = m->mbmi.mb_skip_coeff;
 #if CONFIG_SUPERBLOCKS
+        const int mis = mode_info_stride;
         if (m->mbmi.encoded_as_sb) {
           skip_coeff &= m[1].mbmi.mb_skip_coeff;
           skip_coeff &= m[mis].mbmi.mb_skip_coeff;
--