diff --git a/source/Lib/EncoderLib/InterSearch.cpp b/source/Lib/EncoderLib/InterSearch.cpp index 155e6a71a0519fa30e99106e1eadb1cd06ee31bc..94569d02d3efd688e4c374241a6172445eae1f0c 100644 --- a/source/Lib/EncoderLib/InterSearch.cpp +++ b/source/Lib/EncoderLib/InterSearch.cpp @@ -14323,6 +14323,12 @@ void InterSearch::encodeResAndCalcRdInterCU(CodingStructure &cs, Partitioner &pa m_bilateralFilter->bilateralFilterRDOdiamond5x5( compID, tmpSubBuf, tmpSubBuf, tmpSubBuf, currTU.cu->qp, recIPredBuf, cs.slice->clpRng( compID ), currTU, true, false, &invLUT ); } } + else + { + CompArea compArea = currTU.blocks[compID]; + PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea); + recIPredBuf.copyFrom(tmpSubBuf); + } } } } @@ -14348,6 +14354,12 @@ void InterSearch::encodeResAndCalcRdInterCU(CodingStructure &cs, Partitioner &pa PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea); m_bilateralFilter->bilateralFilterRDOdiamond5x5( compID, tmpSubBuf, tmpSubBuf, tmpSubBuf, currTU.cu->qp, recIPredBuf, cs.slice->clpRng(compID), currTU, true ); } + else + { + CompArea compArea = currTU.blocks[compID]; + PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea); + recIPredBuf.copyFrom(tmpSubBuf); + } } } } @@ -14412,6 +14424,12 @@ void InterSearch::encodeResAndCalcRdInterCU(CodingStructure &cs, Partitioner &pa PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea); m_bilateralFilter->bilateralFilterRDOdiamond5x5( compID, tmpSubBuf, tmpSubBuf, tmpSubBuf, currTU.cu->qp, recIPredBuf, cs.slice->clpRng(compID), currTU, true ); } + else + { + CompArea compArea = currTU.blocks[compID]; + PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea); + recIPredBuf.copyFrom(tmpSubBuf); + } } } }