Commit b1f60e21 authored by Xiang Li's avatar Xiang Li

Fix ticket #244 on wrong CABAC bin type classification when...

Fix ticket #244 on wrong CABAC bin type classification when RExt__DECODER_DEBUG_BIT_STATISTICS is enabled. Patch provided by Peter.Chuang@mediatek.com
parent 8e85cb31
......@@ -3202,6 +3202,7 @@ void CABACReader::residual_coding_subblock( CoeffCodingContext& cctx, TCoeff* co
int rice = g_auiGoRiceParsCoeff [sumAll];
int pos0 = g_auiGoRicePosCoeff0[std::max(0, state - 1)][sumAll];
int rem = m_BinDecoder.decodeRemAbsEP( rice, cctx.extPrec(), cctx.maxLog2TrDRange() );
RExt__DECODER_DEBUG_BIT_STATISTICS_SET(ctype_escs);
DTRACE( g_trace_ctx, D_SYNTAX_RESI, "rem_val() bin=%d ctx=%d\n", rem, rice );
TCoeff tcoeff = ( rem == pos0 ? 0 : rem < pos0 ? rem+1 : rem );
state = ( stateTransTable >> ((state<<2)+((tcoeff&1)<<1)) ) & 3;
......
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