Commit 8c9bcdfa authored by Thomas Davies's avatar Thomas Davies

NEW_MULTISYMBOL: fix comp_inter decoding.

Change-Id: I1978d48d5df22c84cfea4d550ad74321089a2646
parent 2b4ea11a
......@@ -1270,8 +1270,13 @@ static REFERENCE_MODE read_block_reference_mode(AV1_COMMON *cm,
#endif
if (cm->reference_mode == REFERENCE_MODE_SELECT) {
const int ctx = av1_get_reference_mode_context(cm, xd);
#if CONFIG_NEW_MULTISYMBOL
const REFERENCE_MODE mode = (REFERENCE_MODE)aom_read_symbol(
r, xd->tile_ctx->comp_inter_cdf[ctx], 2, ACCT_STR);
#else
const REFERENCE_MODE mode =
(REFERENCE_MODE)aom_read(r, cm->fc->comp_inter_prob[ctx], ACCT_STR);
#endif
FRAME_COUNTS *counts = xd->counts;
if (counts) ++counts->comp_inter[ctx][mode];
return mode; // SINGLE_REFERENCE or COMPOUND_REFERENCE
......
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