Skip to content
Snippets Groups Projects
Commit 5b5b8574 authored by Xiang Li's avatar Xiang Li
Browse files

Merge branch 'ticket129-CPR-search-stabilisation' into 'master'

Fix ticket #129 CPR in VTM can result in different results depending on platform

See merge request jvet/VVCSoftware_VTM!132
parents e3c56308 4fba560d
No related branches found
No related tags found
No related merge requests found
......@@ -1198,6 +1198,16 @@ void InterSearch::xCPREstimation(PredictionUnit& pu, PelUnitBuf& origBuf,
ruiCost = p->second;
buffered = true;
}
else if (p->second == ruiCost)
{
// stabilise the search through the unordered list
if (bv.hor < rcMv.getHor()
|| (bv.hor == rcMv.getHor() && bv.ver < rcMv.getVer()))
{
// update the vector.
rcMv = bv;
}
}
}
}
}
......
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