Add class to handle command line args in the Tools App
This commit is contained in:
1 parent
6ff4a53d87
commit
e924a06a9e
6 files changed
+105
-14
No files matched your search
@@ -52,7 +52,7 @@ Int PlaYUVerTools::openInputs()
|
||||
*/
|
||||
if( m_cCommandLineParser.getOptionsMap().count( "input" ) )
|
||||
{
|
||||
std::string resolutionString;
|
||||
std::string resolutionString("");
|
||||
if( m_cCommandLineParser.getOptionsMap().count( "size" ) )
|
||||
{
|
||||
resolutionString = m_cCommandLineParser.getOptionsMap()["size"].as<std::string>();
|
||||
@@ -80,8 +80,8 @@ Int PlaYUVerTools::openInputs()
|
||||
}
|
||||
catch( const char *msg )
|
||||
{
|
||||
printf( "Cannot open input stream %s with the following error: \n%s", inputFileNames[i].c_str(), msg );
|
||||
return false;
|
||||
printf( "Cannot open input stream %s with the following error: \n%s\n", inputFileNames[i].c_str(), msg );
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
m_uiNumberOfFrames = MAX_UINT;
|
||||
|
||||
Reference in new issue
Block a user