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

Merge branch 'fix162' into 'master'

Fix #162: clear memory to avoid read from uninitialized memory

See merge request jvet/VVCSoftware_VTM!234
parents 08f1a5e5 3af96169
No related branches found
No related tags found
No related merge requests found
......@@ -727,6 +727,7 @@ void BestEncInfoCache::create( const ChromaFormat chFmt )
if( gp_sizeIdxInfo->isCuSize( gp_sizeIdxInfo->sizeFrom( hIdx ) ) && y + ( gp_sizeIdxInfo->sizeFrom( hIdx ) >> MIN_CU_LOG2 ) <= ( MAX_CU_SIZE >> MIN_CU_LOG2 ) )
{
m_bestEncInfo[x][y][wIdx][hIdx] = new BestEncodingInfo;
::memset(m_bestEncInfo[x][y][wIdx][hIdx], 0, sizeof(BestEncodingInfo));
int w = gp_sizeIdxInfo->sizeFrom( wIdx );
int h = gp_sizeIdxInfo->sizeFrom( hIdx );
......
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