diff --git source/Lib/CommonLib/Slice.cpp source/Lib/CommonLib/Slice.cpp
index 9d40fb2..82bf38d 100644
|
|
void Slice::destroyMotionLUTs() |
1641 | 1641 | { |
1642 | 1642 | delete[] m_MotionCandLut->motionCand; |
1643 | 1643 | m_MotionCandLut->motionCand = nullptr; |
1644 | | delete[] m_MotionCandLut; |
| 1644 | delete m_MotionCandLut; |
1645 | 1645 | m_MotionCandLut = NULL; |
1646 | 1646 | } |
1647 | 1647 | void Slice::resetMotionLUTs() |
… |
… |
void Slice::addMotionInfoToLUTs(LutMotionCand* lutMC, MotionInfo newMi) |
1661 | 1661 | int currCnt = lutMC->currCnt ; |
1662 | 1662 | |
1663 | 1663 | bool pruned = false; |
1664 | | int sameCandIdx = -1; |
| 1664 | int sameCandIdx = 0; |
1665 | 1665 | for (int idx = 0; idx < currCnt; idx++) |
1666 | 1666 | { |
1667 | 1667 | if (lutMC->motionCand[idx] == newMi) |