summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-01-30 17:23:26 +0100
committerPaul B Mahol <onemda@gmail.com>2021-01-30 17:28:26 +0100
commit633e344d962fe569e809c9136efe751b9df5575c (patch)
treec7f58f30929f080452f508981721d5e84e872403 /libavfilter
parentf0dd5c00cb9a1212db1a09b975072bb46b962718 (diff)
avfilter/vf_lagfun: add support for commands
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_lagfun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_lagfun.c b/libavfilter/vf_lagfun.c
index 1fbc889e35..0d5b6196ca 100644
--- a/libavfilter/vf_lagfun.c
+++ b/libavfilter/vf_lagfun.c
@@ -211,7 +211,7 @@ static av_cold void uninit(AVFilterContext *ctx)
}
#define OFFSET(x) offsetof(LagfunContext, x)
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption lagfun_options[] = {
{ "decay", "set decay", OFFSET(decay), AV_OPT_TYPE_FLOAT, {.dbl=.95}, 0, 1, FLAGS },
@@ -249,4 +249,5 @@ AVFilter ff_vf_lagfun = {
.outputs = outputs,
.inputs = inputs,
.flags = AVFILTER_FLAG_SLICE_THREADS,
+ .process_command = ff_filter_process_command,
};