Support for variable number of inputs

This commit is contained in:
jfmcarreira committed 2019-05-28 18:55:34 +01:00
1 parent 2adfd28e48
commit b36bbeef7a
2 files changed
+15 -2

No files matched your search

+2 -1
View File
@@ -324,7 +324,8 @@ int CalypTools::Open( int argc, char* argv[] )
return -1;
}
if( m_apcInputStreams.size() != m_pcCurrModuleIf->m_uiNumberOfFrames )
if( !(m_pcCurrModuleIf->m_uiModuleRequirements & CLP_MODULES_VARIABLE_NUM_FRAMES) &&
m_apcInputStreams.size() != m_pcCurrModuleIf->m_uiNumberOfFrames )
{
log( CLP_LOG_ERROR, "Invalid number of inputs! " );
return -1;