Ticket #17: bugfix_do not use sps for layer ID.patch

File bugfix_do not use sps for layer ID.patch, 1.9 KB (added by adarsh, 10 years ago)
  • TLibCommon/TComSlice.cpp

     
    847847  Int numRpsCurrTempList = 0;
    848848
    849849#if SVC_EXTENSION
    850   if( m_eSliceType == I_SLICE || ( m_pcSPS->getLayerId() &&
     850  if( m_eSliceType == I_SLICE || ( getLayerId() &&
    851851    (m_eNalUnitType >= NAL_UNIT_CODED_SLICE_BLA_W_LP) &&
    852852    (m_eNalUnitType <= NAL_UNIT_CODED_SLICE_CRA) ) )
    853853#else
  • TLibDecoder/TDecCAVLC.cpp

     
    23362336    rpcSlice->setActiveNumILRRefIdx(0);
    23372337#if ILP_SSH_SIG
    23382338#if ILP_SSH_SIG_FIX
    2339     if((sps->getLayerId() > 0) && !(rpcSlice->getVPS()->getIlpSshSignalingEnabledFlag()) && (rpcSlice->getNumILRRefIdx() > 0) )
     2339    if((rpcSlice->getLayerId() > 0) && !(rpcSlice->getVPS()->getIlpSshSignalingEnabledFlag()) && (rpcSlice->getNumILRRefIdx() > 0) )
    23402340#else
    23412341    if((sps->getLayerId() > 0) && rpcSlice->getVPS()->getIlpSshSignalingEnabledFlag() && (rpcSlice->getNumILRRefIdx() > 0) )
    23422342#endif
  • TLibEncoder/TEncCavlc.cpp

     
    17671767#if SVC_EXTENSION
    17681768#if ILP_SSH_SIG
    17691769#if ILP_SSH_SIG_FIX
    1770     if((pcSlice->getSPS()->getLayerId() > 0) && !(pcSlice->getVPS()->getIlpSshSignalingEnabledFlag()) && (pcSlice->getNumILRRefIdx() > 0) )
     1770    if((pcSlice->getLayerId() > 0) && !(pcSlice->getVPS()->getIlpSshSignalingEnabledFlag()) && (pcSlice->getNumILRRefIdx() > 0) )
    17711771#else
    17721772    if((pcSlice->getSPS()->getLayerId() > 0) && pcSlice->getVPS()->getIlpSshSignalingEnabledFlag() && (pcSlice->getNumILRRefIdx() > 0) )
    17731773#endif