Ticket #749: VPS_BUGFIX_749.patch

File VPS_BUGFIX_749.patch, 1.5 KB (added by adarsh, 12 years ago)

VPS_BUGFIX related to ticket #749

  • TLibCommon/TypeDef.h

     
    4242
    4343//! \ingroup TLibCommon
    4444//! \{
     45
     46#define VPS_BUGFIX                       1  ///< Fix VPS-related bugs reported in Ticket #749
    4547#define SPS_AMVP_CLEANUP                 1  ///< remove old AMVP related code for alignment with draft text
    4648#define SUPPORT_FOR_VUI                  1  ///< new: add support for VUI and hrd_parameters
    4749#define TARGET_DECLAYERID_SET            1  ///< J0074:  targetDecLayerIdSet for sub-bitstream extraction process
  • TLibEncoder/TEncCavlc.cpp

     
    569569{
    570570#if VPS_SYNTAX_CHANGES
    571571  WRITE_CODE( pcVPS->getVPSId(),                    4,        "video_parameter_set_id" );
     572#if VPS_BUGFIX
     573  WRITE_FLAG( pcVPS->getTemporalNestingFlag(),            "vps_temporal_id_nesting_flag" );
     574#else
    572575  WRITE_FLAG( pcVPS->getTemporalNestingFlag() - 1,            "vps_temporal_id_nesting_flag" );
     576#endif
    573577  WRITE_CODE( 0,                                    2,        "vps_reserved_zero_2bits" );
    574578  WRITE_CODE( 0,                                    6,        "vps_reserved_zero_6bits" );
    575579  WRITE_CODE( pcVPS->getMaxTLayers() - 1,           3,        "vps_max_sub_layers_minus1" );