From c4355642ba8504d2fcfe3431ee9367d050e1c436 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Sat, 20 Jun 2015 22:21:54 +0300 Subject: avcenc: Make sure that "avcenc --help" works as intended The --help option is handled by the normal argument parsing loop below, but that is only invoked if argc > 2. Change-Id: Icff3625412c340565c062628f2657c41db73068e --- test/encoder/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/encoder/main.c b/test/encoder/main.c index 38e31cc..4ff71af 100644 --- a/test/encoder/main.c +++ b/test/encoder/main.c @@ -2088,6 +2088,11 @@ int main(int argc, char *argv[]) } else if(argc == 2) { + if (!strcmp(argv[1], "--help")) + { + print_usage(); + exit(-1); + } strcpy(ac_cfg_fname, argv[1]); } -- cgit v1.2.3