Skip to content
Snippets Groups Projects
Commit a9ccd27c authored by Frank Bossen's avatar Frank Bossen
Browse files

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
No related branches found
No related tags found
1 merge request!524Fix condition regulating output of NAL units in SEI removal app
......@@ -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 )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment