projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5427df0
)
motion-test: do not use getopt()
author
Anton Khirnov
<anton@khirnov.net>
Mon, 9 Jul 2012 06:15:34 +0000
(08:15 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Mon, 9 Jul 2012 15:20:52 +0000
(17:20 +0200)
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>
libavcodec/motion-test.c
patch
|
blob
|
history
diff --git
a/libavcodec/motion-test.c
b/libavcodec/motion-test.c
index
bf63182
..
2c3a0af
100644
(file)
--- 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");