[FFmpeg-cvslog] lavfi: fix can't dispaly "slice" sub-option in "ffmpeg -h full"

Jun Zhao git at videolan.org
Thu Aug 16 14:47:35 EEST 2018


ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Mon Aug 13 09:30:27 2018 +0800| [fe06ed22e6e0a8c2995818c4532eb6f4ec9320b9] | committer: Jun Zhao

lavfi: fix can't dispaly "slice" sub-option in "ffmpeg -h full"

 fix can't dispaly "slice" sub-option in "ffmpeg -h full" for
 AVFilter options.

Signed-off-by: Jun Zhao <mypopydev at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe06ed22e6e0a8c2995818c4532eb6f4ec9320b9
---

 libavfilter/avfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index ed8161136c..85eff0aa1d 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -628,7 +628,7 @@ static const AVClass *filter_child_class_next(const AVClass *prev)
 static const AVOption avfilter_options[] = {
     { "thread_type", "Allowed thread types", OFFSET(thread_type), AV_OPT_TYPE_FLAGS,
         { .i64 = AVFILTER_THREAD_SLICE }, 0, INT_MAX, FLAGS, "thread_type" },
-        { "slice", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AVFILTER_THREAD_SLICE }, .unit = "thread_type" },
+        { "slice", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AVFILTER_THREAD_SLICE }, .flags = FLAGS, .unit = "thread_type" },
     { "enable", "set enable expression", OFFSET(enable_str), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS },
     { "threads", "Allowed number of threads", OFFSET(nb_threads), AV_OPT_TYPE_INT,
         { .i64 = 0 }, 0, INT_MAX, FLAGS },



More information about the ffmpeg-cvslog mailing list