Changeset 674 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
14 Apr 2014, 18:56:22 (11 years ago)
Author:
seregin
Message:

add a check for vps_extension_flag

File:
1 edited

Legend:

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

    r673 r674  
    977977    }
    978978  }
     979
     980#if VPS_EXTNS
    979981  READ_FLAG( uiCode,  "vps_extension_flag" );      pcVPS->setVpsExtensionFlag( uiCode ? true : false );
    980982
     983  // When MaxLayersMinus1 is greater than 0, vps_extension_flag shall be equal to 1.
     984  if( pcVPS->getMaxLayers() > 1 )
     985  {
     986    assert( pcVPS->getVpsExtensionFlag() == true );
     987  }
     988
    981989  if( pcVPS->getVpsExtensionFlag()  )
    982990  {
    983 #if VPS_EXTNS
    984991    while ( m_pcBitstream->getNumBitsRead() % 8 != 0 )
    985992    {
     
    9951002      }
    9961003    }
    997 #else
    998     while ( xMoreRbspData() )
    999     {
    1000       READ_FLAG( uiCode, "vps_extension_data_flag");
    1001     }
    1002 #endif
    10031004  }
    10041005  else
     
    10071008    defaultVPSExtension(pcVPS);   
    10081009  }
     1010#else
     1011  READ_FLAG( uiCode,  "vps_extension_flag" );
     1012  if (uiCode)
     1013  {
     1014    while ( xMoreRbspData() )
     1015    {
     1016      READ_FLAG( uiCode, "vps_extension_data_flag");
     1017    }
     1018  }
     1019#endif
    10091020
    10101021  return;
Note: See TracChangeset for help on using the changeset viewer.