Changeset 596 in SHVCSoftware for branches/SHM-5.0-dev/source


Ignore:
Timestamp:
2 Feb 2014, 19:30:45 (11 years ago)
Author:
seregin
Message:

fix LayerIdIncludedFlag setting

Location:
branches/SHM-5.0-dev/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r593 r596  
    977977      g_uiPCMBitDepthChroma = m_bPCMInputBitDepthFlag ? m_acLayerCfg[layerId].m_inputBitDepthC : m_acLayerCfg[layerId].m_internalBitDepthC;
    978978#endif
    979       vps->setLayerIdIncludedFlag(true, setId, layerId);
     979      if( layerId <= setId )
     980      {
     981        vps->setLayerIdIncludedFlag(true, setId, layerId);
     982      }
     983      else
     984      {
     985        vps->setLayerIdIncludedFlag(false, setId, layerId);
     986      }
    980987    }
    981988  }
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.cpp

    r593 r596  
    21892189  // For other layers
    21902190  Int i, m, n;
    2191   for( i = 1; i <= m_numLayerSets - 1; i++ )
     2191  for( i = 1; i < m_numLayerSets; i++ )
    21922192  {
    21932193    n = 0;
     
    21962196      if( m_layerIdIncludedFlag[i][m] )
    21972197      {
    2198         m_layerSetLayerIdList[i][n] = m;
    2199         n++;
     2198        m_layerSetLayerIdList[i][n++] = m;
    22002199      }
    22012200    }
Note: See TracChangeset for help on using the changeset viewer.