Changeset 1428 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
5 Aug 2015, 20:23:53 (10 years ago)
Author:
seregin
Message:

fix memory allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1426 r1428  
    15991599    {
    16001600      // create buffers for scaling factors
    1601       m_pcPic->createMvScalingFactor(pcSlice->getNumILRRefIdx());
    1602       m_pcPic->createPosScalingFactor(pcSlice->getNumILRRefIdx());
     1601      if( pcSlice->getNumILRRefIdx() )
     1602      {
     1603        m_pcPic->createMvScalingFactor(pcSlice->getNumILRRefIdx());
     1604        m_pcPic->createPosScalingFactor(pcSlice->getNumILRRefIdx());
     1605      }
    16031606
    16041607      for( Int i = 0; i < pcSlice->getNumILRRefIdx(); i++ )
Note: See TracChangeset for help on using the changeset viewer.