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

Fix memory issues with merge

parent 9626fefd
No related branches found
No related tags found
No related merge requests found
......@@ -501,7 +501,7 @@ public:
class MergeCtx
{
public:
MergeCtx() : numValidMergeCand( 0 ), hasMergedCandList( false ) { for( unsigned i = 0; i < MRG_MAX_NUM_CANDS; i++ ) mrgTypeNeighbours[i] = MRG_TYPE_DEFAULT_N; }
MergeCtx() : numValidMergeCand(0), hasMergedCandList(false) { for (unsigned i = 0; i < MRG_MAX_NUM_CANDS; i++) mrgTypeNeighbours[i] = MRG_TYPE_DEFAULT_N; memset(mmvdBaseMv, 0, sizeof(mmvdBaseMv)); memset(useAltHpelIf, 0, sizeof(useAltHpelIf)); }
~MergeCtx() {}
public:
MvField mvFieldNeighbours [ MRG_MAX_NUM_CANDS << 1 ]; // double length for mv of both lists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment