Check number of inputs for quality

This commit is contained in:
jfmcarreira committed 2016-04-04 17:37:21 +01:00
1 parent 4053b47297
commit 1abbaf2092
1 file changed
+5 -5
+5 -5
View File
@@ -184,11 +184,11 @@ Int PlaYUVerTools::Open( Int argc, Char *argv[] )
if( m_cCmdLineHandler.Opts()["quality"]->count() )
{
std::string qualityMetric = m_cCmdLineHandler.m_strQualityMetric;
// if( m_apcInputStreams.size() != 2 )
// {
// m_cCmdLineHandler.log( LOG_ERROR, "Invalid number of inputs! " );
// return 2;
// }
if( m_apcInputStreams.size() < 2 )
{
m_cCmdLineHandler.log( LOG_ERROR, "Invalid number of inputs! " );
return 2;
}
for( UInt i = 0; i < PlaYUVerFrame::supportedQualityMetricsList().size(); i++ )
{
if( lowercase( PlaYUVerFrame::supportedQualityMetricsList()[i] ) == lowercase( qualityMetric ) )