Changeset 1025 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
7 Feb 2015, 08:33:38 (10 years ago)
Author:
seregin
Message:

fix for the ticket #61

File:
1 edited

Legend:

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

    r1013 r1025  
    342342#else
    343343  READ_FLAG( uiCode, "pps_extension_present_flag");
     344  UInt ppsExtension6bits = 0;
    344345#endif
    345346
     
    467468    READ_FLAG( uiCode, "pps_multilayer_extension_flag" );
    468469    assert(uiCode == 1);
     470#if SVC_EXTENSION
     471    READ_CODE(6, ppsExtension6bits, "pps_extension_6bits");
     472#else
    469473    READ_CODE(6, uiCode, "pps_extension_6bits");
    470474    assert(uiCode == 0);
     475#endif
    471476
    472477    READ_FLAG( uiCode, "poc_reset_info_present_flag" );
     
    558563#endif
    559564  }
     565
     566#if SVC_EXTENSION
     567  if( ppsExtension6bits )
     568  {
     569    while( xMoreRbspData() )
     570    {
     571      READ_FLAG( uiCode, "pps_extension_data_flag" );
     572    }
     573  }
     574#endif
    560575#endif
    561576
     
    11141129#if SVC_EXTENSION
    11151130  pcSPS->setExtensionFlag( uiCode ? true : false );
     1131  UInt spsExtension6bits = 0;
    11161132
    11171133  if( pcSPS->getExtensionFlag() )
     
    11471163    READ_FLAG( uiCode, "sps_multilayer_extension_flag" );
    11481164    assert(uiCode == 1);
    1149     READ_CODE(6, uiCode, "sps_extension_6bits");
    1150     assert(uiCode == 0);
     1165    READ_CODE(6, spsExtension6bits, "sps_extension_6bits");
    11511166    parseSPSExtension( pcSPS );
    11521167  }
    11531168#endif
     1169  if( spsExtension6bits )
     1170  {
     1171    while( xMoreRbspData() )
     1172    {
     1173      READ_FLAG( uiCode, "sps_extension_data_flag" );
     1174    }
     1175  }
    11541176#else
    11551177  if (uiCode)
Note: See TracChangeset for help on using the changeset viewer.