Changeset 1008 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibDecoder


Ignore:
Timestamp:
28 Jan 2015, 19:12:58 (10 years ago)
Author:
seregin
Message:

port the fix for the ticket #58 (rev 1007)

File:
1 edited

Legend:

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

    r1006 r1008  
    851851      assert(layerIdx > m_apcSlicePilot->getVPS()->getVpsNumLayerSetsMinus1());
    852852    }
    853   }
    854   if (m_apcSlicePilot->getVPS()->getNumAddLayerSets() == 0)
    855   {
    856     checkValueOfTargetOutputLayerSetIdx(m_apcSlicePilot->getVPS());
    857   }
     853  } 
    858854#else
    859855  checkValueOfTargetOutputLayerSetIdx( m_apcSlicePilot->getVPS());
     
    23042300  m_cEntropyDecoder.decodeVPS( vps );
    23052301  m_parameterSetManagerDecoder.storePrefetchedVPS(vps);
     2302#if R0235_SMALLEST_LAYER_ID
     2303  checkValueOfTargetOutputLayerSetIdx(vps);
     2304#endif
    23062305}
    23072306
     
    30313030  {
    30323031    // Check if the target decoded layer is the highest layer in the list
     3032#if R0235_SMALLEST_LAYER_ID
     3033    assert( params->getTargetOutputLayerSetIdx() < vps->getNumOutputLayerSets() );
     3034#endif
    30333035#if !CONFORMANCE_BITSTREAM_MODE
    30343036    assert( params->getTargetOutputLayerSetIdx() < vps->getNumLayerSets() );
     
    30383040    assert( params->getTargetLayerId() == vps->getNumLayersInIdList( layerSetIdx ) - 1);
    30393041#endif
    3040 
     3042   
     3043#if !R0235_SMALLEST_LAYER_ID
    30413044    Bool layerSetMatchFlag = true;
    30423045    for(Int j = 0; j < vps->getNumLayersInIdList( layerSetIdx ); j++)
     
    30503053
    30513054    assert(layerSetMatchFlag);    // Signaled output layer set index does not match targetOutputLayerId.
     3055#endif
    30523056   
    30533057    // Check if the targetdeclayerIdlist matches the output layer set
     
    32393243{
    32403244  UInt smallestLayerId;
    3241   UInt targetOlsIdx = getCommonDecoderParams()->getTargetOutputLayerSetIdx();
     3245  Int  targetOlsIdx = m_commonDecoderParams->getTargetOutputLayerSetIdx();
     3246  assert( targetOlsIdx >= 0 );
     3247
    32423248  UInt targetDecLayerSetIdx = vps->getOutputLayerSetIdx(targetOlsIdx);
    32433249  UInt lsIdx = targetDecLayerSetIdx;
Note: See TracChangeset for help on using the changeset viewer.