[FFmpeg-cvslog] print_options: do not generate docs for options without enc or dec flags
Anton Khirnov
git at videolan.org
Mon Mar 18 17:49:09 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Feb 22 23:01:54 2013 +0100| [358628074c314c8ec6d433a740e9176e7aefa124] | committer: Anton Khirnov
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=358628074c314c8ec6d433a740e9176e7aefa124
---
doc/print_options.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/print_options.c b/doc/print_options.c
index 4283e6a..498a808 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;
More information about the ffmpeg-cvslog
mailing list