Skip to content
Snippets Groups Projects
Commit 35862807 authored by Anton Khirnov's avatar Anton Khirnov
Browse files

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.
parent ce0124ac
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,9 @@ static void print_usage(void) ...@@ -39,6 +39,9 @@ static void print_usage(void)
static void print_option(const AVOption *opts, const AVOption *o, int per_stream) 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]" : ""); printf("@item -%s%s @var{", o->name, per_stream ? "[:stream_specifier]" : "");
switch (o->type) { switch (o->type) {
case AV_OPT_TYPE_BINARY: printf("hexadecimal string"); break; case AV_OPT_TYPE_BINARY: printf("hexadecimal string"); break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment