Changeset 533 in SHVCSoftware for branches/SHM-4.1-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
2 Jan 2014, 07:28:26 (11 years ago)
Author:
seregin
Message:

fix xGetRefPic in case there is no picture with requested POC in the list

File:
1 edited

Legend:

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

    r532 r533  
    13091309#if AVC_BASE
    13101310        if( pcSlice->getVPS()->getRefLayerId( m_layerId, refLayerIdc ) == 0 && m_parameterSetManagerDecoder.getActiveVPS()->getAvcBaseLayerFlag() )
    1311         {
    1312           pcSlice->setBaseColPic ( refLayerIdc, *m_ppcTDecTop[0]->getListPic()->begin() );
     1311        {         
     1312          TComPic* pic = *m_ppcTDecTop[0]->getListPic()->begin();
     1313
     1314          if( pic )
     1315          {
     1316            pcSlice->setBaseColPic ( refLayerIdc, pic );
     1317          }
     1318          else
     1319          {
     1320            continue;
     1321          }
    13131322#if AVC_SYNTAX
    13141323          TComPic* pBLPic = pcSlice->getBaseColPic(refLayerIdc);
     
    13321341#endif
    13331342          TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    1334           pcSlice->setBaseColPic ( *cListPic, refLayerIdc );
     1343          if( !pcSlice->setBaseColPic ( *cListPic, refLayerIdc ) )
     1344          {
     1345            continue;
     1346          }
    13351347        }
    13361348#else
Note: See TracChangeset for help on using the changeset viewer.