summaryrefslogtreecommitdiff
path: root/libavcodec/motion-test.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-09 08:15:34 +0200
committerDiego Biurrun <diego@biurrun.de>2012-07-09 17:20:52 +0200
commit82f82ccfc822e8548cad233d629e537a3131529c (patch)
tree7c1d3cd4ac23d48aa920d76204dcdaba705e2725 /libavcodec/motion-test.c
parent5427df01862cd2162641c796a7d5e384722e43b6 (diff)
downloadffmpeg-82f82ccfc822e8548cad233d629e537a3131529c.tar.gz
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>
Diffstat (limited to 'libavcodec/motion-test.c')
-rw-r--r--libavcodec/motion-test.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c
index bf63182db1..2c3a0af939 100644
--- a/libavcodec/motion-test.c
+++ b/libavcodec/motion-test.c
@@ -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");