From f4593572d71aaeb43e724cda5183556e491b5630 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Wed, 26 Dec 2018 09:59:40 -0800 Subject: [PATCH] Fix ticket #140 inconsistent results when CPR is on. --- source/Lib/EncoderLib/InterSearch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Lib/EncoderLib/InterSearch.cpp b/source/Lib/EncoderLib/InterSearch.cpp index 6323700a0..7d8bbbafb 100644 --- a/source/Lib/EncoderLib/InterSearch.cpp +++ b/source/Lib/EncoderLib/InterSearch.cpp @@ -768,9 +768,9 @@ int InterSearch::xCPRSearchMVChromaRefine(PredictionUnit& pu, tempSad = sadBestCand[cand]; - Mv cMvQuaterPixl = cMVCand[cand]; - cMvQuaterPixl <<= 2; - pu.mv[0] = cMvQuaterPixl; + Mv mvFullPrecision = cMVCand[cand]; + mvFullPrecision <<= ( 2 + VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE); + pu.mv[0] = mvFullPrecision; pu.interDir = 1; pu.refIdx[0] = pu.cs->slice->getNumRefIdx(REF_PIC_LIST_0) - 1; // last idx in the list -- GitLab