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


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/TLibEncoder/TEncGOP.cpp

    r1427 r1428  
    17351735      {
    17361736        // create buffers for scaling factors
    1737         pcSlice->getPic()->createMvScalingFactor(pcSlice->getNumILRRefIdx());
    1738         pcSlice->getPic()->createPosScalingFactor(pcSlice->getNumILRRefIdx());
     1737        if( pcSlice->getNumILRRefIdx() )
     1738        {
     1739          pcSlice->getPic()->createMvScalingFactor(pcSlice->getNumILRRefIdx());
     1740          pcSlice->getPic()->createPosScalingFactor(pcSlice->getNumILRRefIdx());
     1741        }
    17391742      }
    17401743
Note: See TracChangeset for help on using the changeset viewer.