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

Paul B Mahol git at videolan.org
Sun Dec 20 00:08:40 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Dec 19 23:05:36 2020 +0100| [3336ca46440fe2237fc014a1ba8c3c0a9e5477ef] | committer: Paul B Mahol

avfilter/vf_maskedthreshold: add support for commands

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

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

diff --git a/doc/filters.texi b/doc/filters.texi
index edb1757974..89391deecb 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -14055,6 +14055,10 @@ copied from second 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 maskfun
 Create mask from input video.
 
diff --git a/libavfilter/vf_maskedthreshold.c b/libavfilter/vf_maskedthreshold.c
index d925819f6a..5a6ebb1a07 100644
--- a/libavfilter/vf_maskedthreshold.c
+++ b/libavfilter/vf_maskedthreshold.c
@@ -43,7 +43,7 @@ typedef struct MaskedThresholdContext {
 } MaskedThresholdContext;
 
 #define OFFSET(x) offsetof(MaskedThresholdContext, 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 *src, *ref, *dst;
@@ -295,4 +295,5 @@ AVFilter ff_vf_maskedthreshold = {
     .inputs        = maskedthreshold_inputs,
     .outputs       = maskedthreshold_outputs,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
+    .process_command = ff_filter_process_command,
 };



More information about the ffmpeg-cvslog mailing list