Bugfixes for PU::clusterBvpCand and CABACReader::mvsdIdxFunc
Bugfixes for PU::clusterBvpCand and CABACReader::mvsdIdxFunc.
The first bug is that pInfo->mvCand[1] may not refer to the best Bv of Group 2, when the first forloop in the funciton iterates to i=1 with validCand[1]=false. In the case, the forloop bypasses all the processes and continues iterating to i=2, and thus the best Bv of Group 2 is not stored at pInfo->mvCand[1], but somewhere beyond.
The second bug is that the macro, JVET_AC0104_IBC_BVD_PREDICTION, does not guard every thing it adds to ECM SW. This bugfix is lossless change to CTC.