Changeset 1007 in SHVCSoftware


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

fix for the ticket #58, patch was provided by Hendry <fhendry@…>

File:
1 edited

Legend:

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

    r1005 r1007  
    10251025    }
    10261026  }
    1027   if (m_apcSlicePilot->getVPS()->getNumAddLayerSets() == 0)
    1028   {
    1029     checkValueOfTargetOutputLayerSetIdx(m_apcSlicePilot->getVPS());
    1030   }
    10311027#else
    10321028  checkValueOfTargetOutputLayerSetIdx(m_apcSlicePilot->getVPS());
     
    24832479 
    24842480  m_cEntropyDecoder.decodeVPS( vps );
    2485   m_parameterSetManagerDecoder.storePrefetchedVPS(vps); 
     2481  m_parameterSetManagerDecoder.storePrefetchedVPS(vps);
     2482#if R0235_SMALLEST_LAYER_ID
     2483  checkValueOfTargetOutputLayerSetIdx(vps);
     2484#endif
    24862485}
    24872486
     
    30413040  {
    30423041    // Check if the target decoded layer is the highest layer in the list
    3043 #if 0
     3042#if R0235_SMALLEST_LAYER_ID
     3043    assert( params->getTargetOutputLayerSetIdx() < vps->getNumOutputLayerSets() );
     3044#endif
     3045#if !CONFORMANCE_BITSTREAM_MODE
    30443046    assert( params->getTargetOutputLayerSetIdx() < vps->getNumLayerSets() );
    30453047#endif
    30463048    Int layerSetIdx = vps->getOutputLayerSetIdx( params->getTargetOutputLayerSetIdx() );  // Index to the layer set
    3047 #if 0
     3049#if !CONFORMANCE_BITSTREAM_MODE
    30483050    assert( params->getTargetLayerId() == vps->getNumLayersInIdList( layerSetIdx ) - 1);
    30493051#endif
    3050 
     3052#if !R0235_SMALLEST_LAYER_ID
    30513053    Bool layerSetMatchFlag = true;
    30523054    for(Int j = 0; j < vps->getNumLayersInIdList( layerSetIdx ); j++)
     
    30603062
    30613063    assert(layerSetMatchFlag);    // Signaled output layer set index does not match targetOutputLayerId.
     3064#endif
    30623065   
    30633066    // Check if the targetdeclayerIdlist matches the output layer set
     
    32493252{
    32503253  UInt smallestLayerId;
    3251   UInt targetOlsIdx = getCommonDecoderParams()->getTargetOutputLayerSetIdx();
     3254  Int  targetOlsIdx = getCommonDecoderParams()->getTargetOutputLayerSetIdx();
     3255  assert( targetOlsIdx >= 0 );
     3256
    32523257  UInt targetDecLayerSetIdx = vps->getOutputLayerSetIdx(targetOlsIdx);
    32533258  UInt lsIdx = targetDecLayerSetIdx;
Note: See TracChangeset for help on using the changeset viewer.