Skip to content
Snippets Groups Projects
Commit 68ba6652 authored by Xiang Li's avatar Xiang Li
Browse files

Merge branch 'JVET_L0646_Commit2' into 'master'

JVET_L0646: Fix uninitialized variables

See merge request !41
parents f861901c 51f34645
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ public: ...@@ -162,7 +162,7 @@ public:
} }
Mv* pAffineMv = &(m_mvAffine[0][0][0][0]); 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); pAffineMv->set(0, 0);
} }
......
...@@ -268,6 +268,8 @@ CodingUnit& CodingUnit::operator=( const CodingUnit& other ) ...@@ -268,6 +268,8 @@ CodingUnit& CodingUnit::operator=( const CodingUnit& other )
imvNumCand = other.imvNumCand; imvNumCand = other.imvNumCand;
#if JVET_L0646_GBI #if JVET_L0646_GBI
GBiIdx = other.GBiIdx; GBiIdx = other.GBiIdx;
for (int i = 0; i<2; i++)
refIdxBi[i] = other.refIdxBi[i];
#endif #endif
return *this; return *this;
} }
...@@ -297,6 +299,8 @@ void CodingUnit::initData() ...@@ -297,6 +299,8 @@ void CodingUnit::initData()
imvNumCand = 0; imvNumCand = 0;
#if JVET_L0646_GBI #if JVET_L0646_GBI
GBiIdx = GBI_DEFAULT; GBiIdx = GBI_DEFAULT;
for (int i = 0; i < 2; i++)
refIdxBi[i] = -1;
#endif #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