Ticket #113: memory.patch

File memory.patch, 725 bytes (added by taoranlu, 5 years ago)
  • source/Lib/CommonLib/Slice.cpp

    diff --git source/Lib/CommonLib/Slice.cpp source/Lib/CommonLib/Slice.cpp
    index 9d40fb2..82bf38d 100644
    void Slice::destroyMotionLUTs() 
    16411641{
    16421642  delete[] m_MotionCandLut->motionCand;
    16431643  m_MotionCandLut->motionCand = nullptr;
    1644   delete[] m_MotionCandLut;
     1644  delete m_MotionCandLut;
    16451645  m_MotionCandLut = NULL;
    16461646}
    16471647void Slice::resetMotionLUTs()
    void Slice::addMotionInfoToLUTs(LutMotionCand* lutMC, MotionInfo newMi) 
    16611661  int currCnt = lutMC->currCnt ;
    16621662
    16631663  bool pruned = false;
    1664   int  sameCandIdx = -1;
     1664  int  sameCandIdx = 0;
    16651665  for (int idx = 0; idx < currCnt; idx++)
    16661666  {
    16671667    if (lutMC->motionCand[idx] == newMi)