diff options
Diffstat (limited to 'vp9/encoder/vp9_bitstream.c')
-rw-r--r-- | vp9/encoder/vp9_bitstream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c index 9f79f8cdc..7d7b7f0b6 100644 --- a/vp9/encoder/vp9_bitstream.c +++ b/vp9/encoder/vp9_bitstream.c @@ -279,7 +279,7 @@ static void pack_mb_tokens(vp9_writer* const w, // is split into two treed writes. The first treed write takes care of the // unconstrained nodes. The second treed write takes care of the // constrained nodes. - if (t >= TWO_TOKEN && t < DCT_EOB_TOKEN) { + if (t >= TWO_TOKEN && t < EOB_TOKEN) { int len = UNCONSTRAINED_NODES - p->skip_eob_node; int bits = v >> (n - len); treed_write(w, vp9_coef_tree, p->context_tree, bits, len, i); @@ -679,10 +679,10 @@ static void build_tree_distribution(VP9_COMP *cpi, TX_SIZE tx_size) { #ifdef ENTROPY_STATS if (!cpi->dummy_packing) { int t; - for (t = 0; t < MAX_ENTROPY_TOKENS; ++t) + for (t = 0; t < ENTROPY_TOKENS; ++t) context_counters[tx_size][i][j][k][l][t] += coef_counts[i][j][k][l][t]; - context_counters[tx_size][i][j][k][l][MAX_ENTROPY_TOKENS] += + context_counters[tx_size][i][j][k][l][ENTROPY_TOKENS] += eob_branch_ct[i][j][k][l]; } #endif |