Changeset 1076 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
10 Mar 2015, 17:11:19 (10 years ago)
Author:
seregin
Message:

move the check for target layerId.

File:
1 edited

Legend:

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

    r1075 r1076  
    29082908  }
    29092909
    2910   if( params->getTargetLayerId() > vps->getMaxLayerId() )
    2911   {
    2912     printf( "Warning: specified target layerId %d is greater than max layerId %d. Target layerId is set equal to max layerId %d.\n", params->getTargetLayerId(), vps->getMaxLayerId(), vps->getMaxLayerId() );
    2913     params->setTargetLayerId( vps->getMaxLayerId() );
    2914   }
    2915 
    29162910  if( params->getTargetOutputLayerSetIdx() == -1 )  // Output layer set index not specified
    29172911  {
     2912    if( params->getTargetLayerId() > vps->getMaxLayerId() )
     2913    {
     2914      printf( "Warning: specified target layerId %d is greater than max layerId %d. Target layerId is set equal to max layerId %d.\n", params->getTargetLayerId(), vps->getMaxLayerId(), vps->getMaxLayerId() );
     2915      params->setTargetLayerId( vps->getMaxLayerId() );
     2916    }
     2917
    29182918    Bool layerSetMatchFound = false;
    29192919    // Output layer set index not assigned.
Note: See TracChangeset for help on using the changeset viewer.