diff --git a/source/Lib/CommonLib/UnitTools.cpp b/source/Lib/CommonLib/UnitTools.cpp index 4f4725d4563392bac99fb3eebac9eda39c211051..b7c70c66655778b5c04003d36e2d7d49fa7aacdd 100644 --- a/source/Lib/CommonLib/UnitTools.cpp +++ b/source/Lib/CommonLib/UnitTools.cpp @@ -2365,6 +2365,9 @@ void PU::fillMvpCand(PredictionUnit &pu, const RefPicList &eRefPicList, const in if (pu.cu->imv != 0) { unsigned imvShift = pu.cu->imv << 1; +#if REMOVE_MV_ADAPT_PREC + imvShift += VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE; +#endif roundMV(cColMv, imvShift); } int i = 0; @@ -3158,6 +3161,9 @@ void PU::addAMVPHMVPCand(const PredictionUnit &pu, const RefPicList eRefPicList, MotionInfo neibMi; int i = 0; unsigned imvShift = imv << 1; +#if REMOVE_MV_ADAPT_PREC + imvShift += VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE; +#endif int num_avai_candInLUT = slice.getAvailableLUTMrgNum(); int num_allowedCand = std::min(MAX_NUM_HMVP_AVMPCANDS, num_avai_candInLUT);