Commit 4fba560d authored by Gordon CLARE's avatar Gordon CLARE

ticket 129

Stabilise the CPR search
gordon.clare@orange.com
parent 016e68f1
......@@ -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