summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2015-06-20 22:21:54 +0300
committerMarco Nelissen <marcone@google.com>2015-06-25 08:25:56 -0700
commitc4355642ba8504d2fcfe3431ee9367d050e1c436 (patch)
tree4fc720cda4e664090beb1b7731092046a64f88cc /test
parent85783df9840a6bc58a2a71081990797ac3af0976 (diff)
downloadandroid_external_libavc-c4355642ba8504d2fcfe3431ee9367d050e1c436.tar.gz
android_external_libavc-c4355642ba8504d2fcfe3431ee9367d050e1c436.tar.bz2
android_external_libavc-c4355642ba8504d2fcfe3431ee9367d050e1c436.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/encoder/main.c5
1 files changed, 5 insertions, 0 deletions
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]);
}