Browse Source

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: Diego Biurrun <diego@biurrun.de>
tags/n1.0
Anton Khirnov Diego Biurrun 13 years ago
parent
commit
82f82ccfc8
1 changed files with 3 additions and 9 deletions
  1. +3
    -9
      libavcodec/motion-test.c

+ 3
- 9
libavcodec/motion-test.c View File

@@ -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");


Loading…
Cancel
Save