swr-test: support "--help"
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 5 Jun 2012 15:12:50 +0000 (17:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Jun 2012 22:55:26 +0000 (00:55 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 787c395a30ecc87bd6dadf2ec1ccab8648653880)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample-test.c

index 7af55b8..8a88b39 100644 (file)
@@ -243,7 +243,7 @@ int main(int argc, char **argv){
     struct SwrContext *backw_ctx= NULL;
 
     if (argc > 1) {
-        if (!strcmp(argv[1], "-h")) {
+        if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) {
             av_log(NULL, AV_LOG_INFO, "Usage: swresample-test [<num_tests>[ <test>]]  \n"
                    "num_tests           Default is %d\n", num_tests);
             return 0;