aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-08-27 22:10:10 +0200
committerPaul B Mahol <onemda@gmail.com>2016-08-29 16:27:09 +0200
commit449339084fb2fe9259d8612a9c8c2a886022d1f5 (patch)
tree3d468c02bf39b9e42bdbc519d5fa503adf172a43 /libavfilter/avfilter.c
parent7ba98824a948f8ab7c4ad52b5b8a470a741a2d41 (diff)
downloadffmpeg-449339084fb2fe9259d8612a9c8c2a886022d1f5.tar.gz
avfilter: add nb_threads to AVFilterContext
To be used in following commits.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 21f8d9e00d..a8e5a5a73d 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -616,6 +616,8 @@ static const AVOption avfilter_options[] = {
{ .i64 = AVFILTER_THREAD_SLICE }, 0, INT_MAX, FLAGS, "thread_type" },
{ "slice", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AVFILTER_THREAD_SLICE }, .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 },
{ NULL },
};