fixed cmd line parsing in the samples
This commit is contained in:
@@ -356,7 +356,7 @@ int main(int argc, const char **argv)
|
||||
|
||||
// check if source video is specified
|
||||
|
||||
string inputPath = arg("1");
|
||||
string inputPath = arg(0);
|
||||
if (inputPath.empty())
|
||||
throw runtime_error("specify video file path");
|
||||
|
||||
|
Reference in New Issue
Block a user