Ticket #954: vps_extension_fix.patch

File vps_extension_fix.patch, 663 bytes (added by jonatan, 12 years ago)
  • source/Lib/TLibDecoder/TDecCAVLC.cpp

     
    811811  READ_UVLC( uiCode,    "vps_num_hrd_parameters" );           assert(uiCode == 0);
    812812  // hrd_parameters
    813813#endif
    814   READ_FLAG( uiCode,  "vps_extension_flag" );          assert(!uiCode);
    815   //future extensions go here..
    816  
     814  READ_FLAG( uiCode,  "vps_extension_flag" );
     815  if (uiCode)
     816  {
     817    while ( xMoreRbspData() )
     818    {
     819      READ_FLAG( uiCode, "vps_extension_data_flag");
     820    }
     821  }
     822
    817823  return;
    818824}
    819825