Commit 7195e405 authored by Xiang Li's avatar Xiang Li

Merge branch 'fix_ticket244' into 'master'

Fix ticket #244 on wrong CABAC bin type classification

See merge request jvet/VVCSoftware_VTM!519
parents 63ee5564 b1f60e21
Pipeline #1471 passed with stage
......@@ -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