diff --git a/source/Lib/CommonLib/IntraPrediction.cpp b/source/Lib/CommonLib/IntraPrediction.cpp index da1d237c9032a7f6b3cc99908ce224b9ccafc8a3..71c000e40d2ab1429bcfd118a1eebaf791d8e4d0 100644 --- a/source/Lib/CommonLib/IntraPrediction.cpp +++ b/source/Lib/CommonLib/IntraPrediction.cpp @@ -2619,7 +2619,7 @@ void IntraPrediction::xPredIntraAng( const CPelBuf &pSrc, PelBuf &pDst, const Ch #endif // initializing for safeguard. ::memset(refAbove, 0, sizeof(refAbove)); - ::memset(refLeft, 0, sizeof(refAbove)); + ::memset(refLeft, 0, sizeof(refLeft)); #if JVET_AB0157_INTRA_FUSION } @@ -4653,7 +4653,7 @@ void IntraPrediction::xPredTimdIntraAng( const CPelBuf &pSrc, const ClpRng& clpR Pel refAbove[(MAX_CU_SIZE << 3) + 5 + 33 * MAX_REF_LINE_IDX]; Pel refLeft[(MAX_CU_SIZE << 3) + 5 + 33 * MAX_REF_LINE_IDX]; ::memset(refAbove, 0, sizeof(refAbove)); - ::memset(refLeft, 0, sizeof(refAbove)); + ::memset(refLeft, 0, sizeof(refLeft)); #else static Pel refAbove[2 * MAX_CU_SIZE + 5 + 33 * MAX_REF_LINE_IDX]; static Pel refLeft[2 * MAX_CU_SIZE + 5 + 33 * MAX_REF_LINE_IDX]; @@ -13000,7 +13000,7 @@ void IntraPrediction::xPredTmrlIntraAng(const CPelBuf& pSrc, const ClpRng& clpRn #endif // initializing for safeguard. ::memset(refAbove, 0, sizeof(refAbove)); - ::memset(refLeft, 0, sizeof(refAbove)); + ::memset(refLeft, 0, sizeof(refLeft)); // Initialize the Main and Left reference array. if (intraPredAngle < 0)