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


Ignore:
Timestamp:
10 Apr 2014, 02:39:09 (11 years ago)
Author:
seregin
Message:

fix encoder setting for rep_format_idx_present_flag and add check for vps_num_rep_formats_minus1

File:
1 edited

Legend:

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

    r662 r663  
    14381438  READ_UVLC( uiCode, "vps_num_rep_formats_minus1" );
    14391439  vps->setVpsNumRepFormats( uiCode + 1 );
     1440
     1441  // The value of vps_num_rep_formats_minus1 shall be in the range of 0 to 255, inclusive.
     1442  assert( vps->getVpsNumRepFormats() > 0 && vps->getVpsNumRepFormats() <= 256 );
     1443
    14401444  for(i = 0; i < vps->getVpsNumRepFormats(); i++)
    14411445  {
     
    14541458  else
    14551459  {
     1460    // When not present, the value of rep_format_idx_present_flag is inferred to be equal to 0
    14561461    vps->setRepFormatIdxPresentFlag( false );
    14571462  }
     1463
    14581464  if( vps->getRepFormatIdxPresentFlag() )
    14591465  {
Note: See TracChangeset for help on using the changeset viewer.