Changeset 422 in SHVCSoftware


Ignore:
Timestamp:
8 Oct 2013, 23:53:14 (11 years ago)
Author:
qualcomm
Message:

Fix for N0147.

Location:
branches/SHM-3.1-dev/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r421 r422  
    11761176    if(  m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag())
    11771177    {
    1178       for( Int i = 0; i < pcPic->getSlice(0)->getActiveNumILRRefIdx(); i++ )
    1179       {
    1180         Int refLayerIdc = pcPic->getSlice(0)->getInterLayerPredLayerIdc(i);
    1181 
    1182         if(m_cIlpPic[refLayerIdc] && pcSlice->isIRAP())
     1178      for(Int dependentLayerIdx = 0; dependentLayerIdx < pcSlice->getVPS()->getNumDirectRefLayers(m_layerId); dependentLayerIdx++)
     1179      {
     1180        TComList<TComPic*> *cListPic = getRefLayerDec( dependentLayerIdx )->getListPic();
     1181        TComPic* refpicLayer = pcSlice->getRefPic(*cListPic, pcSlice->getPOC() );
     1182        if(refpicLayer && pcSlice->isIRAP())
    11831183        {                 
    1184           assert(pcSlice->getNalUnitType() == m_cIlpPic[refLayerIdc]->getSlice(0)->getNalUnitType());
     1184          assert(pcSlice->getNalUnitType() == refpicLayer->getSlice(0)->getNalUnitType());
    11851185        }
    11861186      }
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r418 r422  
    777777          TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(0)->getListPic();
    778778          TComPic* picLayer0 = pcSlice->getRefPic(*cListPic, pcSlice->getPOC() );
    779           if( picLayer0->getSlice(0)->isIRAP())
     779          if( picLayer0->getSlice(0)->isIRAP() && picLayer0)
    780780          {
    781781            pcSlice->setNalUnitType(picLayer0->getSlice(0)->getNalUnitType());
Note: See TracChangeset for help on using the changeset viewer.