diff --git a/source/Lib/CommonLib/TrQuant.cpp b/source/Lib/CommonLib/TrQuant.cpp index 6a7fbf4151f781b34efe323688073c7ac98492c4..cee14283178f94f9fafea69a27cd1c705eb55f1b 100644 --- a/source/Lib/CommonLib/TrQuant.cpp +++ b/source/Lib/CommonLib/TrQuant.cpp @@ -265,7 +265,7 @@ void TrQuant::fwdLfnstNxN( TCoeff* src, TCoeff* dst, const uint32_t mode, const trMat += trSize; } - ::memset( out, 0, ( trSize - zeroOutSize ) * sizeof( int ) ); + ::memset( out, 0, ( trSize - zeroOutSize ) * sizeof( TCoeff ) ); } void TrQuant::invLfnstNxN( TCoeff* src, TCoeff* dst, const uint32_t mode, const uint32_t index, const uint32_t size, int zeroOutSize, const int maxLog2TrDynamicRange )