Skip to content
Snippets Groups Projects
Commit 817186a8 authored by Karsten Suehring's avatar Karsten Suehring
Browse files

Merge branch 'fix114' into 'master'

Ensure encoding and decoding of # merge candidates matches

See merge request jvet/VVCSoftware_VTM!103
parents 195d2796 8d9ea6ab
No related branches found
No related tags found
No related merge requests found
......@@ -1784,8 +1784,13 @@ void HLSyntaxReader::parseSliceHeader (Slice* pcSlice, ParameterSetManager *para
}
if (!pcSlice->isIntra())
{
#if JVET_L0369_SUBBLOCK_MERGE
READ_UVLC(uiCode, "six_minus_max_num_merge_cand");
pcSlice->setMaxNumMergeCand(MRG_MAX_NUM_CANDS - uiCode);
#else
READ_UVLC( uiCode, sps->getSpsNext().getUseSubPuMvp() ? "seven_minus_max_num_merge_cand" : "five_minus_max_num_merge_cand");
pcSlice->setMaxNumMergeCand(MRG_MAX_NUM_CANDS - uiCode - ( sps->getSpsNext().getUseSubPuMvp() ? 0 : 2 ) );
#endif
#if JVET_L0632_AFFINE_MERGE
#if JVET_L0369_SUBBLOCK_MERGE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment