[FFmpeg-cvslog] swr-test: support "--help"

Michael Niedermayer git at videolan.org
Thu Jun 7 01:44:25 CEST 2012


ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Tue Jun  5 17:12:50 2012 +0200| [a53ca16ae95f30173d1ad6d085045de0f6db0672] | committer: Michael Niedermayer

swr-test: support "--help"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 787c395a30ecc87bd6dadf2ec1ccab8648653880)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a53ca16ae95f30173d1ad6d085045de0f6db0672
---

 libswresample/swresample-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswresample/swresample-test.c b/libswresample/swresample-test.c
index 7af55b8..8a88b39 100644
--- a/libswresample/swresample-test.c
+++ b/libswresample/swresample-test.c
@@ -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;



More information about the ffmpeg-cvslog mailing list