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

Paul B Mahol git at videolan.org
Wed Dec 30 17:33:56 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Dec 30 16:31:19 2020 +0100| [2f20e35892c866d4e141e73a3e2df16457f9a21a] | committer: Paul B Mahol

avfilter/vf_w3fdif: add support for commands

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

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

diff --git a/doc/filters.texi b/doc/filters.texi
index 959f5cd22b..435575a5fb 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -20922,6 +20922,9 @@ Only deinterlace frames marked as interlaced.
 Default value is @samp{all}.
 @end table
 
+ at subsection Commands
+This filter supports same @ref{commands} as options.
+
 @section waveform
 Video waveform monitor.
 
diff --git a/libavfilter/vf_w3fdif.c b/libavfilter/vf_w3fdif.c
index 5d64dbd953..c7c6984241 100644
--- a/libavfilter/vf_w3fdif.c
+++ b/libavfilter/vf_w3fdif.c
@@ -49,7 +49,7 @@ typedef struct W3FDIFContext {
 } W3FDIFContext;
 
 #define OFFSET(x) offsetof(W3FDIFContext, 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
 #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit }
 
 static const AVOption w3fdif_options[] = {
@@ -602,4 +602,5 @@ AVFilter ff_vf_w3fdif = {
     .inputs        = w3fdif_inputs,
     .outputs       = w3fdif_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