Ticket #107: ticket107.patch

File ticket107.patch, 1.2 KB (added by Tomohiro Ikai, 9 years ago)
  • Lib/TLibCommon/TypeDef.h

     
    6767#define NH_MV_FIX_TICKET_100              1 // Extra slice header bits
    6868#define H_MV_ENC_DEC_TRAC                 1  //< CU/PU level tracking
    6969#define H_MV_ENC_DEC_TRAC_FIX             1  // by SHARP
     70#define NH_MV_FIX_TICKET_107              1  // layer_set_idx_for_ols inference
    7071#if NH_3D
    7172// FIXES
    7273#define NH_3D_FIX_TICKET_98               1 // Writing of depth intra skip flag
  • Lib/TLibDecoder/TDecCAVLC.cpp

     
    16181618    {       
    16191619      READ_CODE( pcVPS->getLayerSetIdxForOlsMinus1Len( i ), uiCode, "layer_set_idx_for_ols_minus1[i]" ); pcVPS->setLayerSetIdxForOlsMinus1( i, uiCode );
    16201620    }
     1621#if NH_MV_FIX_TICKET_107
     1622    else
     1623    {
     1624      pcVPS->setLayerSetIdxForOlsMinus1( i, (pcVPS->getNumLayerSets() == 2) ? 0 : i - 1 );
     1625    }
     1626#endif
    16211627
    16221628    if ( i > pcVPS->getVpsNumLayerSetsMinus1() || pcVPS->getDefaultOutputLayerIdc() == 2 )
    16231629    {