Commit 5b5b8574 authored by Xiang Li's avatar Xiang Li

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 !132
parents e3c56308 4fba560d
Pipeline #453 passed with stage
......@@ -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;
}
}
}
}
}
......
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