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

Paul B Mahol git at videolan.org
Sat Dec 19 21:46:59 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Dec 19 20:37:26 2020 +0100| [4fcfecdd66cb21a0d1aee26abb02eb3057172e9f] | committer: Paul B Mahol

avfilter/vf_maskedclamp: add support for commands

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

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

diff --git a/doc/filters.texi b/doc/filters.texi
index 3b4ed37297..7ab583accc 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -13971,6 +13971,10 @@ copied from first stream.
 By default value 0xf, all planes will be processed.
 @end table
 
+ at subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section maskedmax
 
 Merge the second and third input stream into output stream using absolute differences
diff --git a/libavfilter/vf_maskedclamp.c b/libavfilter/vf_maskedclamp.c
index 52392c4c86..af2793b55d 100644
--- a/libavfilter/vf_maskedclamp.c
+++ b/libavfilter/vf_maskedclamp.c
@@ -29,7 +29,7 @@
 #include "maskedclamp.h"
 
 #define OFFSET(x) offsetof(MaskedClampContext, x)
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 
 typedef struct ThreadData {
     AVFrame *b, *o, *m, *d;
@@ -327,4 +327,5 @@ AVFilter ff_vf_maskedclamp = {
     .outputs       = maskedclamp_outputs,
     .priv_class    = &maskedclamp_class,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
+    .process_command = ff_filter_process_command,
 };



More information about the ffmpeg-cvslog mailing list