From: Yaowu Xu Date: Mon, 1 Jul 2013 15:54:50 +0000 (-0700) Subject: fix a mismatch in cpuused 2 X-Git-Tag: v1.3.0~979 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=632289b31fd11229c875c116f4281e3ab6f42115;p=libvpx fix a mismatch in cpuused 2 Change-Id: I921c9faba6386535aaf717a54301dd346a9b8540 --- diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index 60bab6f93..a8fb4539c 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -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;