diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-08-11 19:45:30 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-08-19 19:21:35 +0200 |
commit | 7c5012127fb7e18f0616011257bb4248f6a8b608 (patch) | |
tree | b15931979cb46f5fc5f5d5b79680de8664f9a7d5 /avplay.c | |
parent | dc4c24a3d35603957aecf2b075ac25902d18a190 (diff) | |
download | ffmpeg-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |