]> granicus.if.org Git - libvpx/commitdiff
fix a mismatch in cpuused 2
authorYaowu Xu <yaowu@google.com>
Mon, 1 Jul 2013 15:54:50 +0000 (08:54 -0700)
committerYaowu Xu <yaowu@google.com>
Mon, 1 Jul 2013 15:54:50 +0000 (08:54 -0700)
Change-Id: I921c9faba6386535aaf717a54301dd346a9b8540

vp9/encoder/vp9_encodeframe.c

index 60bab6f93c253fd060934114fd277141680e194a..a8fb4539cd423652aec0594fe986960227dc1a22 100644 (file)
@@ -1208,8 +1208,8 @@ static void rd_use_partition(VP9_COMP *cpi, MODE_INFO *m, TOKENEXTRA **tp,
       pick_sb_modes(cpi, mi_row, mi_col, tp, &r, &d, subsize,
                     get_block_context(x, subsize));
       if (mi_row + (bh >> 1) <= cm->mi_rows) {
-        int rt;
-        int64_t dt;
+        int rt = 0;
+        int64_t dt = 0;
         update_state(cpi, get_block_context(x, subsize), subsize, 0);
         encode_superblock(cpi, tp, 0, mi_row, mi_col, subsize);
         *(get_sb_index(xd, subsize)) = 1;
@@ -1227,8 +1227,8 @@ static void rd_use_partition(VP9_COMP *cpi, MODE_INFO *m, TOKENEXTRA **tp,
       pick_sb_modes(cpi, mi_row, mi_col, tp, &r, &d, subsize,
                     get_block_context(x, subsize));
       if (mi_col + (bs >> 1) <= cm->mi_cols) {
-        int rt;
-        int64_t dt;
+        int rt = 0;
+        int64_t dt = 0;
         update_state(cpi, get_block_context(x, subsize), subsize, 0);
         encode_superblock(cpi, tp, 0, mi_row, mi_col, subsize);
         *(get_sb_index(xd, subsize)) = 1;
@@ -1247,8 +1247,8 @@ static void rd_use_partition(VP9_COMP *cpi, MODE_INFO *m, TOKENEXTRA **tp,
         int x_idx = (i & 1) * (bs >> 2);
         int y_idx = (i >> 1) * (bs >> 2);
         int jj = i >> 1, ii = i & 0x01;
-        int rt;
-        int64_t dt;
+        int rt = 0;
+        int64_t dt = 0;
 
         if ((mi_row + y_idx >= cm->mi_rows) || (mi_col + x_idx >= cm->mi_cols))
           continue;