[FFmpeg-cvslog] avfilter/vf_lagfun: add support for commands

Paul B Mahol git at videolan.org
Sat Jan 30 18:28:36 EET 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jan 30 17:23:26 2021 +0100| [633e344d962fe569e809c9136efe751b9df5575c] | committer: Paul B Mahol

avfilter/vf_lagfun: add support for commands

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

 doc/filters.texi        | 4 ++++
 libavfilter/vf_lagfun.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index a87f2fb7cc..6782be3762 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -13458,6 +13458,10 @@ Set factor for decaying. Default is .95. Allowed range is from 0 to 1.
 Set which planes to filter. Default is all. Allowed range is from 0 to 15.
 @end table
 
+ at subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section lenscorrection
 
 Correct radial lens distortion
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,
 };



More information about the ffmpeg-cvslog mailing list