]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_w3fdif: add support for commands
authorPaul B Mahol <onemda@gmail.com>
Wed, 30 Dec 2020 15:31:19 +0000 (16:31 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 30 Dec 2020 15:33:30 +0000 (16:33 +0100)
doc/filters.texi
libavfilter/vf_w3fdif.c

index 959f5cd22bc4d2667e12d94d233b8987b65b80b5..435575a5fb041fbcbb24fdc93739016d3723c8e7 100644 (file)
@@ -20922,6 +20922,9 @@ Only deinterlace frames marked as interlaced.
 Default value is @samp{all}.
 @end table
 
+@subsection Commands
+This filter supports same @ref{commands} as options.
+
 @section waveform
 Video waveform monitor.
 
index 5d64dbd9539375bae4c5684a5213afeba1c3c4a6..c7c698424101ea63994e2ac66530a84b19c74eae 100644 (file)
@@ -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,
 };