- Timestamp:
- 8 Oct 2013, 23:53:14 (11 years ago)
- 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 1176 1176 if( m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag()) 1177 1177 { 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()) 1183 1183 { 1184 assert(pcSlice->getNalUnitType() == m_cIlpPic[refLayerIdc]->getSlice(0)->getNalUnitType());1184 assert(pcSlice->getNalUnitType() == refpicLayer->getSlice(0)->getNalUnitType()); 1185 1185 } 1186 1186 } -
branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r418 r422 777 777 TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(0)->getListPic(); 778 778 TComPic* picLayer0 = pcSlice->getRefPic(*cListPic, pcSlice->getPOC() ); 779 if( picLayer0->getSlice(0)->isIRAP() )779 if( picLayer0->getSlice(0)->isIRAP() && picLayer0) 780 780 { 781 781 pcSlice->setNalUnitType(picLayer0->getSlice(0)->getNalUnitType());
Note: See TracChangeset for help on using the changeset viewer.