Commit 82f82ccf authored by Anton Khirnov's avatar Anton Khirnov Committed by Diego Biurrun

motion-test: do not use getopt()

It is not available on all systems and using argc/argv directly actually
makes the code simpler.
Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent 5427df01
......@@ -119,15 +119,9 @@ int main(int argc, char **argv)
int flags[2] = { AV_CPU_FLAG_MMX, AV_CPU_FLAG_MMX2 };
int flags_size = HAVE_MMX2 ? 2 : 1;
for(;;) {
c = getopt(argc, argv, "h");
if (c == -1)
break;
switch(c) {
case 'h':
help();
return 1;
}
if (argc > 1) {
help();
return 1;
}
printf("Libav motion test\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment