Ticket #1121: PossibleFixFor1121.patch
File PossibleFixFor1121.patch, 2.0 KB (added by rickard, 10 years ago) |
---|
-
TAppDecTop.cpp
193 193 // write reconstruction to file 194 194 if(bNewPicture) 195 195 { 196 xWriteOutput( pcListPic , nalu.m_temporalId);196 xWriteOutput( pcListPic ); 197 197 } 198 198 } 199 199 } … … 237 237 /** \param pcListPic list of pictures to be written to file 238 238 \todo DYN_REF_FREE should be revised 239 239 */ 240 Void TAppDecTop::xWriteOutput( TComList<TComPic*>* pcListPic , UInt tId)240 Void TAppDecTop::xWriteOutput( TComList<TComPic*>* pcListPic) 241 241 { 242 242 TComList<TComPic*>::iterator iterPic = pcListPic->begin(); 243 243 Int not_displayed = 0; … … 256 256 while (iterPic != pcListPic->end()) 257 257 { 258 258 TComPic* pcPic = *(iterPic); 259 260 if ( pcPic->getOutputMark() && (not_displayed > pcPic->getNumReorderPics(tId) && pcPic->getPOC() > m_iPOCLastDisplay)) 259 UInt highestTid = (m_iMaxTemporalLayer >= 0) ? min((UInt)m_iMaxTemporalLayer, pcPic->getSlice(0)->getSPS()->getMaxTLayers() - 1) : 260 pcPic->getSlice(0)->getSPS()->getMaxTLayers() - 1; 261 if ( pcPic->getOutputMark() && (not_displayed > pcPic->getNumReorderPics(highestTid) && pcPic->getPOC() > m_iPOCLastDisplay)) 261 262 { 262 263 // write to file 263 264 not_displayed--; -
TAppDecTop.h
80 80 Void xDestroyDecLib (); ///< destroy internal classes 81 81 Void xInitDecLib (); ///< initialize decoder class 82 82 83 Void xWriteOutput ( TComList<TComPic*>* pcListPic , UInt tId); ///< write YUV to file83 Void xWriteOutput ( TComList<TComPic*>* pcListPic); ///< write YUV to file 84 84 Void xFlushOutput ( TComList<TComPic*>* pcListPic ); ///< flush all remaining decoded pictures to file 85 85 Bool isNaluWithinTargetDecLayerIdSet ( InputNALUnit* nalu ); ///< check whether given Nalu is within targetDecLayerIdSet 86 86 };