Changeset 680 in SHVCSoftware for branches/SHM-6-dev/source/App


Ignore:
Timestamp:
15 Apr 2014, 21:28:58 (11 years ago)
Author:
seregin
Message:

fix for the ticket #26

File:
1 edited

Legend:

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

    r677 r680  
    10911091#if VPS_TSLAYERS
    10921092    vps->setMaxTSLayersPresentFlag(true);
    1093     for( i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++ )
    1094     {
    1095         vps->setMaxTSLayersMinus1(i, vps->getMaxTLayers()-1);
     1093    for( i = 0; i < vps->getMaxLayers(); i++ )
     1094    {
     1095      vps->setMaxTSLayersMinus1(i, vps->getMaxTLayers()-1);
    10961096    }
    10971097#endif
     
    11041104  if (vps->getMaxTidRefPresentFlag())
    11051105  {
    1106     for( i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++ )
     1106    for( i = 0; i < vps->getMaxLayers() - 1; i++ )
    11071107    {
    11081108#if N0120_MAX_TID_REF_CFG
    11091109#if O0225_MAX_TID_FOR_REF_LAYERS
    1110       for( Int j = i+1; j <= MAX_VPS_LAYER_ID_PLUS1 - 1; j++)
     1110      for( Int j = i+1; j < vps->getMaxLayers(); j++)
    11111111      {
    11121112        vps->setMaxTidIlRefPicsPlus1(i, j, m_acTEncTop[i].getMaxTidIlRefPicsPlus1());
     
    11171117#else
    11181118#if O0225_MAX_TID_FOR_REF_LAYERS
    1119       for( Int j = i+1; j <= MAX_VPS_LAYER_ID_PLUS1 - 1; j++)
     1119      for( Int j = i+1; j < vps->getMaxLayers(); j++)
    11201120      {
    11211121        vps->setMaxTidIlRefPicsPlus1(i, j, vps->getMaxTLayers()+1);
     
    11291129  else
    11301130  {
    1131     for( i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++ )
     1131    for( i = 0; i < vps->getMaxLayers() - 1; i++ )
    11321132    {
    11331133#if O0225_MAX_TID_FOR_REF_LAYERS
    1134       for( Int j = i+1; j <= MAX_VPS_LAYER_ID_PLUS1 - 1; j++)
     1134      for( Int j = i+1; j < vps->getMaxLayers(); j++)
    11351135      {
    11361136        vps->setMaxTidIlRefPicsPlus1(i, j, 7);
Note: See TracChangeset for help on using the changeset viewer.