From 7c5012127fb7e18f0616011257bb4248f6a8b608 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 11 Aug 2012 19:45:30 +0200 Subject: 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. --- avplay.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'avplay.c') 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); -- cgit v1.2.3