Skip to content
Snippets Groups Projects
Commit 3af96169 authored by Frank Bossen's avatar Frank Bossen
Browse files

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

parent 08f1a5e5
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