summaryrefslogtreecommitdiff
path: root/doc/print_options.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-02-22 23:01:54 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-18 15:36:25 +0100
commit358628074c314c8ec6d433a740e9176e7aefa124 (patch)
tree1115ddf153961d9d2092c20cc278ed9039b122a3 /doc/print_options.c
parentce0124acacd9acbfdc267464a4b52947a249b4bd (diff)
print_options: do not generate docs for options without enc or dec flags
Those are not usable from the avtools, so mentioning them in the manpages just confuses the reader.
Diffstat (limited to 'doc/print_options.c')
-rw-r--r--doc/print_options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/print_options.c b/doc/print_options.c
index 4283e6a86d..498a808946 100644
--- a/doc/print_options.c
+++ b/doc/print_options.c
@@ -39,6 +39,9 @@ static void print_usage(void)
static void print_option(const AVOption *opts, const AVOption *o, int per_stream)
{
+ if (!(o->flags & (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_ENCODING_PARAM)))
+ return;
+
printf("@item -%s%s @var{", o->name, per_stream ? "[:stream_specifier]" : "");
switch (o->type) {
case AV_OPT_TYPE_BINARY: printf("hexadecimal string"); break;