Skip to content

Commit

Permalink
fix deadlock after parse errors, when running with parseDelay = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
K-os committed Nov 7, 2024
1 parent d764a62 commit 9bc0741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Lib/DecoderLib/DecLibParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ bool DecLibParser::parse( InputNALUnit& nalu )
const VPS* vps = m_parameterSetManager.getVPS( sps->getVPSId() );
m_seiReader.parseSEImessage( &( nalu.getBitstream() ), m_pcParsePic->seiMessageList, nalu.m_nalUnitType, nalu.m_nuhLayerId, nalu.m_temporalId, vps, sps, m_HRD, m_pDecodedSEIOutputStream );

if( m_parseFrameDelay == 0 ) // else it has to be done in finishPicture()
if( m_parseFrameDelay == 0 && !m_pcParsePic->error ) // if m_parseFrameDelay > 0, it has to be done in finishPicture()
{
// if parallel parsing is disabled, wait for the picture to finish
if( m_threadPool->numThreads() == 0 )
Expand Down

0 comments on commit 9bc0741

Please sign in to comment.