Changeset 515 in SHVCSoftware for branches/SHM-4.1-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
16 Dec 2013, 20:55:32 (11 years ago)
Author:
seregin
Message:

JCTVC_O0142: Conditional SPS extension with macro O0142_CONDITIONAL_SPS_EXTENSION, patch was provided by Danny Hong <danny@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r514 r515  
    662662  if( 1 )   // if( sps_extension_flag )
    663663  {
     664#if O0142_CONDITIONAL_SPS_EXTENSION
     665    UInt spsExtensionTypeFlag[8] = { 0, 1, 0, 0, 0, 0, 0, 0 };
     666    for (UInt i = 0; i < 8; i++)
     667    {
     668      WRITE_FLAG( spsExtensionTypeFlag[i], "sps_extension_type_flag" );
     669    }
     670    if (spsExtensionTypeFlag[1])
     671    {
     672      codeSPSExtension( pcSPS );
     673    }
     674#else
    664675    codeSPSExtension( pcSPS );
    665676    WRITE_FLAG( 0, "sps_extension2_flag" );
     677#endif
    666678  }
    667679#else
Note: See TracChangeset for help on using the changeset viewer.