mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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>
This commit is contained in:
parent
5427df0186
commit
82f82ccfc8
@ -119,15 +119,9 @@ int main(int argc, char **argv)
|
|||||||
int flags[2] = { AV_CPU_FLAG_MMX, AV_CPU_FLAG_MMX2 };
|
int flags[2] = { AV_CPU_FLAG_MMX, AV_CPU_FLAG_MMX2 };
|
||||||
int flags_size = HAVE_MMX2 ? 2 : 1;
|
int flags_size = HAVE_MMX2 ? 2 : 1;
|
||||||
|
|
||||||
for(;;) {
|
if (argc > 1) {
|
||||||
c = getopt(argc, argv, "h");
|
help();
|
||||||
if (c == -1)
|
return 1;
|
||||||
break;
|
|
||||||
switch(c) {
|
|
||||||
case 'h':
|
|
||||||
help();
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Libav motion test\n");
|
printf("Libav motion test\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user