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
  • TabularUnified branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r672 r674  
    777777    }
    778778  }
    779 #if !VPS_EXTNS
    780   WRITE_FLAG( 0,                     "vps_extension_flag" );
    781 #else
    782   pcVPS->setVpsExtensionFlag(true);
     779#if VPS_EXTNS
     780  // When MaxLayersMinus1 is greater than 0, vps_extension_flag shall be equal to 1.
     781  if( pcVPS->getMaxLayers() > 1 )
     782  {
     783    assert( pcVPS->getVpsExtensionFlag() == true );
     784  }
     785
    783786  WRITE_FLAG( pcVPS->getVpsExtensionFlag() ? 1 : 0,                     "vps_extension_flag" );
    784787
     
    799802    WRITE_FLAG( 0,                     "vps_extension2_flag" );   // Flag value of 1 reserved
    800803  }
     804#else
     805  WRITE_FLAG( 0,                     "vps_extension_flag" );
    801806#endif 
    802807  //future extensions here..
Note: See TracChangeset for help on using the changeset viewer.