Ticket #93: OpenDecoderFilesFix_rev1519.patch

File OpenDecoderFilesFix_rev1519.patch, 1.1 KB (added by rickard, 8 years ago)
  • App/TAppDecoder/TAppDecTop.cpp

     
    325325
    326326    if( pcListPic )
    327327    {
    328       if ( !m_reconFileName[curLayerId].empty() && !openedReconFile[curLayerId] )
     328      if ( !m_reconFileName[curLayerId].empty() && !openedReconFile[curLayerId] && m_apcTDecTop[curLayerId]->getParameterSetManager()->getActiveSPS())
    329329      {
    330330        const BitDepths& bitDepths = m_apcTDecTop[curLayerId]->getParameterSetManager()->getActiveSPS()->getBitDepths();
    331331
     
    17231723      // Output all picutres "decoded" in that layer that have POC less than the current picture
    17241724      std::vector<TComPic> *layerBuffer = m_apcTDecTop[layerId]->getConfListPic();
    17251725      // Write all pictures to the file.
    1726       if( this->getDecodedYuvLayerRefresh(layerId) )
     1726      if( this->getDecodedYuvLayerRefresh(layerId) && m_apcTDecTop[layerId]->getParameterSetManager()->getActiveSPS())
    17271727      {
    17281728        char tempFileName[256];
    17291729        strcpy(tempFileName, this->getDecodedYuvLayerFileName( layerId ).c_str());