ref: 5cc0a364ae9bd3e3ac6248f85283cf0cfa9ab07f
parent: f60171bb4f362f8729b69272bcf03f1e4c0b040a
parent: bfd62cdaff72e37fc688864cfc77f35e0375a390
author: Johann Koenig <johannkoenig@google.com>
date: Wed Feb 1 15:55:11 EST 2017
Merge "vp9_rdopt: declare 'c' closer to use"
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -358,7 +358,7 @@
unsigned int(*token_costs)[2][COEFF_CONTEXTS][ENTROPY_TOKENS] =
x->token_costs[tx_size][type][is_inter_block(mi)];
uint8_t token_cache[32 * 32];
- int c, cost;
+ int cost;
#if CONFIG_VP9_HIGHBITDEPTH
const int *cat6_high_cost = vp9_get_high_cost_table(xd->bd);
#else
@@ -373,10 +373,10 @@
if (eob == 0) {
// single eob token
cost = token_costs[0][0][pt][EOB_TOKEN];
- c = 0;
} else {
if (use_fast_coef_costing) {
int band_left = *band_count++;
+ int c;
// dc token
int v = qcoeff[0];
@@ -407,6 +407,7 @@
} else { // !use_fast_coef_costing
int band_left = *band_count++;
+ int c;
// dc token
int v = qcoeff[0];