Ticket #93: OpenDecoderFilesFix_rev1519.patch
File OpenDecoderFilesFix_rev1519.patch, 1.1 KB (added by rickard, 8 years ago) |
---|
-
App/TAppDecoder/TAppDecTop.cpp
325 325 326 326 if( pcListPic ) 327 327 { 328 if ( !m_reconFileName[curLayerId].empty() && !openedReconFile[curLayerId] )328 if ( !m_reconFileName[curLayerId].empty() && !openedReconFile[curLayerId] && m_apcTDecTop[curLayerId]->getParameterSetManager()->getActiveSPS()) 329 329 { 330 330 const BitDepths& bitDepths = m_apcTDecTop[curLayerId]->getParameterSetManager()->getActiveSPS()->getBitDepths(); 331 331 … … 1723 1723 // Output all picutres "decoded" in that layer that have POC less than the current picture 1724 1724 std::vector<TComPic> *layerBuffer = m_apcTDecTop[layerId]->getConfListPic(); 1725 1725 // Write all pictures to the file. 1726 if( this->getDecodedYuvLayerRefresh(layerId) )1726 if( this->getDecodedYuvLayerRefresh(layerId) && m_apcTDecTop[layerId]->getParameterSetManager()->getActiveSPS()) 1727 1727 { 1728 1728 char tempFileName[256]; 1729 1729 strcpy(tempFileName, this->getDecodedYuvLayerFileName( layerId ).c_str());