diff options
Diffstat (limited to 'libavcodec/motion-test.c')
-rw-r--r-- | libavcodec/motion-test.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c index f55ac21c06..6b954ebc9b 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("ffmpeg motion test\n"); |