shithub: libvpx

Download patch

ref: 5510e379308a103c3ce54dff0b4d1f8e398bff25
parent: ac5bdc0ed80d2d854347166dc7e7c013eefabe8a
author: Marco Paniconi <marpan@google.com>
date: Mon Mar 24 05:31:17 EDT 2014

Fix to a static warning.

Change-Id: I398decf319c8f4d1b3abe1f276e009840e61b684

--- a/vp9/encoder/vp9_aq_cyclicrefresh.c
+++ b/vp9/encoder/vp9_aq_cyclicrefresh.c
@@ -150,7 +150,7 @@
     int qindex_delta = 0;
     int mbs_in_frame = cm->mi_rows * cm->mi_cols;
     int i, x, y, block_count, bl_index, bl_index2;
-    int sum_map, new_value, mi_row, mi_col, xmis, ymis, qindex2;
+    int sum_map, mi_row, mi_col, xmis, ymis, qindex2;
 
     // Rate target ratio to set q delta.
     float rate_ratio_qdelta = 2.0;
@@ -249,9 +249,9 @@
             bl_index2 = bl_index + y * cm->mi_cols + x;
                sum_map += seg_map[bl_index2];
           }
-        new_value = 0;
         // If segment is partial over superblock, reset.
         if (sum_map > 0 && sum_map < xmis * ymis) {
+          int new_value;
           if (sum_map < xmis * ymis / 2)
             new_value = 0;
           else