Commit 9bf9b6a5 authored by Xiang Li's avatar Xiang Li
Browse files

Fix ticket #153 on using uninitialized interDir and GBI array when...

Fix ticket #153 on using uninitialized interDir and GBI array when MaxNumMergeCand=1 and MMVD uses the second merge candidate as base MV.
parent 20671d8e
......@@ -2319,6 +2319,8 @@ void PU::getInterMMVDMergeCandidates(const PredictionUnit &pu, MergeCtx& mrgCtx,
mrgCtx.mmvdBaseMv[k][0] = MvField(Mv(0, 0), 0);
mrgCtx.mmvdBaseMv[k][0] = MvField(Mv(0, 0), 0);
#endif
mrgCtx.GBiIdx[k] = GBI_DEFAULT;
mrgCtx.interDirNeighbours[k] = (mrgCtx.mmvdBaseMv[k][0].refIdx >= 0) + (mrgCtx.mmvdBaseMv[k][1].refIdx >= 0) * 2;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment