aboutsummaryrefslogtreecommitdiffstats
path: root/avplay.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-08-11 19:45:30 +0200
committerAnton Khirnov <anton@khirnov.net>2012-08-19 19:21:35 +0200
commit7c5012127fb7e18f0616011257bb4248f6a8b608 (patch)
treeb15931979cb46f5fc5f5d5b79680de8664f9a7d5 /avplay.c
parentdc4c24a3d35603957aecf2b075ac25902d18a190 (diff)
downloadffmpeg-7c5012127fb7e18f0616011257bb4248f6a8b608.tar.gz
cmdutils: change semantics of show_help_options() and document it.
Currently it takes a mask and value, such that options for which (flags & mask) == value. Change it to take required flags and forbidden flags instead. This is shorter and simpler to understand.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/avplay.c b/avplay.c
index bb10810492..64d7b3da33 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2926,10 +2926,8 @@ static int show_help(const char *opt, const char *arg)
{
av_log_set_callback(log_callback_help);
show_usage();
- show_help_options(options, "Main options:",
- OPT_EXPERT, 0);
- show_help_options(options, "Advanced options:",
- OPT_EXPERT, OPT_EXPERT);
+ show_help_options(options, "Main options:", 0, OPT_EXPERT);
+ show_help_options(options, "Advanced options:", OPT_EXPERT, 0);
printf("\n");
show_help_children(avcodec_get_class(), AV_OPT_FLAG_DECODING_PARAM);
show_help_children(avformat_get_class(), AV_OPT_FLAG_DECODING_PARAM);