diff --git a/source/Lib/CommonLib/IntraPrediction.cpp b/source/Lib/CommonLib/IntraPrediction.cpp index b0035dfec2a758cf1c9fff4f346ee5e781f2f2e4..2346809ace806f5edf7a0420d8c1d06ce1c8f62c 100644 --- a/source/Lib/CommonLib/IntraPrediction.cpp +++ b/source/Lib/CommonLib/IntraPrediction.cpp @@ -1827,8 +1827,8 @@ void IntraPrediction::xGetLMParameters(const PredictionUnit &pu, const Component startPos[1] = actualLeftTemplateSampNum >> (2 + leftIs4); pickStep[1] = std::max(1, actualLeftTemplateSampNum >> (1 + leftIs4)); - Pel selectLumaPix[4]; - Pel selectChromaPix[4]; + Pel selectLumaPix[4] = { 0, 0, 0, 0 }; + Pel selectChromaPix[4] = { 0, 0, 0, 0 }; int cntT, cntL; cntT = cntL = 0;