Skip to content
Snippets Groups Projects
Commit 51f34645 authored by Yu-Chi Su's avatar Yu-Chi Su
Browse files

Fix uninitialized variables

parent 85ef8d46
No related branches found
No related tags found
1 merge request!41JVET_L0646: Fix uninitialized variables
......@@ -162,7 +162,7 @@ public:
}
Mv* pAffineMv = &(m_mvAffine[0][0][0][0]);
for (int ui = 0; ui < 2 * 2 * 33 * 3; ++ui, ++pMv)
for (int ui = 0; ui < 2 * 2 * 33 * 3; ++ui, ++pAffineMv)
{
pAffineMv->set(0, 0);
}
......
......@@ -268,6 +268,8 @@ CodingUnit& CodingUnit::operator=( const CodingUnit& other )
imvNumCand = other.imvNumCand;
#if JVET_L0646_GBI
GBiIdx = other.GBiIdx;
for (int i = 0; i<2; i++)
refIdxBi[i] = other.refIdxBi[i];
#endif
return *this;
}
......@@ -297,6 +299,8 @@ void CodingUnit::initData()
imvNumCand = 0;
#if JVET_L0646_GBI
GBiIdx = GBI_DEFAULT;
for (int i = 0; i < 2; i++)
refIdxBi[i] = -1;
#endif
}
......
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