ref: 632289b31fd11229c875c116f4281e3ab6f42115
parent: 993942ce0c2a3323e2652580cca5a50558537ea6
author: Yaowu Xu <yaowu@google.com>
date: Mon Jul 1 04:54:50 EDT 2013
fix a mismatch in cpuused 2 Change-Id: I921c9faba6386535aaf717a54301dd346a9b8540
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -1208,8 +1208,8 @@
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 @@
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 @@
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;