diff --git a/source/Lib/EncoderLib/EncNNFilterHOP.cpp b/source/Lib/EncoderLib/EncNNFilterHOP.cpp index f07cba8a5aa777adcb7765c1fd7bed57ede4bbf9..1e02afb93d1b994d1af1dfb465ebf7b781db77e9 100644 --- a/source/Lib/EncoderLib/EncNNFilterHOP.cpp +++ b/source/Lib/EncoderLib/EncNNFilterHOP.cpp @@ -317,7 +317,7 @@ void EncNNFilterHOP::scaleFactorDerivation(Picture &pic, FilterParameters &prms, int scale = int(((area_comp * crossMulti - sumOrgResi * sumCnnResi + area_comp * area_comp * stablizingFactor) / (area_comp * selfMulti - sumCnnResi * sumCnnResi + area_comp * area_comp * stablizingFactor)) - * (1 << shift) + 0.5); + * (1 << log2ResidueScale) + 0.5); scale = Clip3(Bot, Up, scale); prms.sprm.scale[compID][prmId] = scale;