Commit 02be3ee6 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review

Merge "Use remove some magic numbers in aom_rans_merge_prob8_pdf." into nextgenv2

parents 91072e98 8db9faef
......@@ -39,7 +39,7 @@ void aom_rans_merge_prob8_pdf(aom_cdf_prob *const out_pdf,
const int out_syms = in_syms + 1;
assert(src_pdf != out_pdf);
out_pdf[0] = node_prob << (10 - 8);
out_pdf[0] = node_prob << (RANS_PROB_BITS - ANS_P8_SHIFT);
adjustment -= out_pdf[0];
for (i = 0; i < in_syms; ++i) {
int p = (p1 * src_pdf[i] + round_fact) >> ANS_P8_SHIFT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment