Opened 6 years ago
Last modified 4 years ago
#144 closed defect
Initialization of List 1 motion vector is missing in getInterMMVDMergeCandidates(..) function. — at Initial Version
Reported by: | ss00.jeong | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | VTM | Version: | |
Keywords: | MMVD | Cc: | ksuehring, XiangLi, fbossen, jvet@… |
Description
The following code
if (currBaseNum < MMVD_BASE_MV_NUM)
{
for (k = currBaseNum; k < MMVD_BASE_MV_NUM; k++)
{
mrgCtx.mmvdBaseMv[k][0] = MvField(Mv(0, 0), 0);
mrgCtx.mmvdBaseMv[k][0] = MvField(Mv(0, 0), 0);
}
}
should be replaced by
if (currBaseNum < MMVD_BASE_MV_NUM)
{
for (k = currBaseNum; k < MMVD_BASE_MV_NUM; k++)
{
mrgCtx.mmvdBaseMv[k][0] = MvField(Mv(0, 0), 0);
mrgCtx.mmvdBaseMv[k][0] = MvField(Mv(0, 0), 0);
if (pu.cu->slice->getSliceType() == B_SLICE)
{
mrgCtx.mmvdBaseMv[k][1] = MvField(Mv(0, 0), 0);
mrgCtx.mmvdBaseMv[k][1] = MvField(Mv(0, 0), 0);
}
}
}
.
There is no performance change.