Skip to content
Snippets Groups Projects
Commit 0c378179 authored by Axel Ricard's avatar Axel Ricard
Browse files

fix MSAN issues

Fixed some parts of code that are reported as 'use-of-uninitialized-value'
by MemorySanitizer (using clang++-16)
parent 50bf727b
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ protected:
bool isCrossedByVirtualBoundaries( const CodingStructure& cs, const int xPos, const int yPos, const int width, const int height, bool& clipTop, bool& clipBottom, bool& clipLeft, bool& clipRight, int& numHorVirBndry, int& numVerVirBndry, int horVirBndryPos[], int verVirBndryPos[], int& rasterSliceAlfPad );
CcAlfFilterParam m_ccAlfFilterParam;
uint8_t* m_ccAlfFilterControl[2];
uint8_t* m_ccAlfFilterControl[2] = { nullptr };
static const int m_classToFilterMapping[ALF_NUM_FIXED_FILTER_SETS][MAX_NUM_ALF_CLASSES];
static const int m_fixedFilterSetCoeff[ALF_FIXED_FILTER_NUM][MAX_NUM_ALF_LUMA_COEFF];
short m_fixedFilterSetCoeffDec[ALF_NUM_FIXED_FILTER_SETS][MAX_NUM_ALF_CLASSES * MAX_NUM_ALF_LUMA_COEFF];
......
......@@ -68,6 +68,15 @@ PPS::PPS()
, m_cabacInitPresentFlag(false)
, m_pictureHeaderExtensionPresentFlag(0)
, m_sliceHeaderExtensionPresentFlag(false)
, m_deblockingFilterControlPresentFlag(false)
, m_deblockingFilterOverrideEnabledFlag(false)
, m_ppsDeblockingFilterDisabledFlag(false)
, m_deblockingFilterBetaOffsetDiv2(0)
, m_deblockingFilterTcOffsetDiv2(0)
, m_deblockingFilterCbBetaOffsetDiv2(0)
, m_deblockingFilterCbTcOffsetDiv2(0)
, m_deblockingFilterCrBetaOffsetDiv2(0)
, m_deblockingFilterCrTcOffsetDiv2(0)
, m_listsModificationPresentFlag(0)
, m_rplInfoInPhFlag(0)
, m_dbfInfoInPhFlag(0)
......
......@@ -2188,6 +2188,7 @@ PicHeader::PicHeader()
, m_cuChromaQpOffsetSubdivInter(0)
, m_enableTMVPFlag(true)
, m_picColFromL0Flag(true)
, m_colRefIdx(0)
, m_mvdL1ZeroFlag(0)
, m_maxNumAffineMergeCand(AFFINE_MRG_MAX_NUM_CANDS)
, m_disFracMMVD(0)
......@@ -2199,6 +2200,9 @@ PicHeader::PicHeader()
, m_numAlfApsIdsLuma(0)
, m_alfApsIdsLuma(0)
, m_alfApsIdChroma(0)
, m_ccalfEnabledFlag{ false }
, m_ccalfCbApsId(-1)
, m_ccalfCrApsId(-1)
, m_deblockingFilterOverrideFlag(0)
, m_deblockingFilterDisable(0)
, m_deblockingFilterBetaOffsetDiv2(0)
......@@ -2271,6 +2275,7 @@ void PicHeader::initPicHeader()
m_cuChromaQpOffsetSubdivInter = 0;
m_enableTMVPFlag = true;
m_picColFromL0Flag = true;
m_colRefIdx = 0;
m_mvdL1ZeroFlag = 0;
m_maxNumAffineMergeCand = AFFINE_MRG_MAX_NUM_CANDS;
m_disFracMMVD = 0;
......@@ -2281,6 +2286,9 @@ void PicHeader::initPicHeader()
m_qpDelta = 0;
m_numAlfApsIdsLuma = 0;
m_alfApsIdChroma = 0;
memset(m_ccalfEnabledFlag, false, sizeof(m_ccalfEnabledFlag));
m_ccalfCbApsId = -1;
m_ccalfCrApsId = -1;
m_deblockingFilterOverrideFlag = 0;
m_deblockingFilterDisable = 0;
m_deblockingFilterBetaOffsetDiv2 = 0;
......@@ -2378,6 +2386,10 @@ APS::~APS()
}
ScalingList::ScalingList()
: m_scalingListPredModeFlagIsCopy{ false }
, m_scalingListDC{ 0 }
, m_refMatrixId{ 0 }
, m_scalingListPreditorModeFlag{ false }
{
m_chromaScalingListPresentFlag = true;
for (uint32_t scalingListId = 0; scalingListId < 28; scalingListId++)
......
......@@ -463,6 +463,7 @@ DecLib::DecLib()
, m_clsVPSid(0)
#if GDR_ENABLED
, m_lastGdrPoc (-1)
, m_lastGdrRecoveryPocCnt(0)
#endif
, m_targetSubPicIdx(0)
, m_dci(nullptr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment