Commit a9ccd27c authored by Frank Bossen's avatar Frank Bossen

Fix condition regulating output of NAL units in SEI removal app

There should be no limit on the number of NAL units output when
m_numNALUnitsToWrite is set to -1
parent cf76914b
......@@ -129,7 +129,7 @@ uint32_t SEIRemovalApp::decode()
// just kick out all suffix SEIS
bWrite &= (( !m_discardSuffixSEIs || nalu.m_nalUnitType != NAL_UNIT_SUFFIX_SEI ) && ( !m_discardPrefixSEIs || nalu.m_nalUnitType != NAL_UNIT_PREFIX_SEI ));
bWrite &= unitCnt >= m_numNALUnitsToSkip;
bWrite &= m_numNALUnitsToWrite > 0 && unitCnt <= m_numNALUnitsToWrite;
bWrite &= m_numNALUnitsToWrite < 0 || unitCnt <= m_numNALUnitsToWrite;
if( bWrite )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment