Skip to content
Snippets Groups Projects
Commit df6b9afa authored by Yan Zhang's avatar Yan Zhang
Browse files

fix issue 61

parent edbcd848
No related branches found
No related tags found
1 merge request!630Fix: ECM-12.0 decoder crash for --EnableTMTools=0 (#61)
...@@ -4375,6 +4375,12 @@ void DecCu::xDeriveCUMV(CodingUnit &cu) ...@@ -4375,6 +4375,12 @@ void DecCu::xDeriveCUMV(CodingUnit &cu)
else else
{ {
PU::getInterMergeCandidates(pu, mrgCtx, 0, pu.mergeIdx); PU::getInterMergeCandidates(pu, mrgCtx, 0, pu.mergeIdx);
#if JVET_AG0276_LIC_FLAG_SIGNALING
if (pu.mergeOppositeLic)
{
mrgCtx.licFlags[pu.mergeIdx] = !mrgCtx.licFlags[pu.mergeIdx];
}
#endif
} }
#else #else
PU::getInterMergeCandidates(pu, mrgCtx, 0, pu.mergeIdx); PU::getInterMergeCandidates(pu, mrgCtx, 0, pu.mergeIdx);
......
...@@ -5239,13 +5239,13 @@ void EncCu::xCheckRDCostMerge2Nx2N( CodingStructure *&tempCS, CodingStructure *& ...@@ -5239,13 +5239,13 @@ void EncCu::xCheckRDCostMerge2Nx2N( CodingStructure *&tempCS, CodingStructure *&
m_pcInterSearch->adjustAffineMergeCandidates(pu, affineBMMergeCtx); m_pcInterSearch->adjustAffineMergeCandidates(pu, affineBMMergeCtx);
} }
#endif #endif
#if JVET_AG0276_LIC_FLAG_SIGNALING }
if (hasOppositelicAff && pu.cs->sps->getUseAffMergeOppositeLic())
{
affineMergeCtxOppositeLic.numValidMergeCand = slice.getPicHeader()->getMaxNumAffineOppositeLicMergeCand();
affineMergeCtxOppositeLic.maxNumMergeCand = slice.getPicHeader()->getMaxNumAffineOppositeLicMergeCand();
}
#endif #endif
#if JVET_AG0276_LIC_FLAG_SIGNALING
if (hasOppositelicAff && pu.cs->sps->getUseAffMergeOppositeLic())
{
affineMergeCtxOppositeLic.numValidMergeCand = slice.getPicHeader()->getMaxNumAffineOppositeLicMergeCand();
affineMergeCtxOppositeLic.maxNumMergeCand = slice.getPicHeader()->getMaxNumAffineOppositeLicMergeCand();
} }
#endif #endif
#if JVET_AD0182_AFFINE_DMVR_PLUS_EXTENSIONS #if JVET_AD0182_AFFINE_DMVR_PLUS_EXTENSIONS
......
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