ffmpeg | branch: master | Paul B Mahol <[email protected]> | Wed Nov 18 17:34:52 
2020 +0100| [17a0dfebf55f67653c29a607545a799f12bc0c01] | committer: Paul B Mahol

avfilter/vf_despill: add support for commands

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

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

diff --git a/doc/filters.texi b/doc/filters.texi
index 375a82a9b2..a2d1a3aa9f 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -9410,6 +9410,10 @@ Controls brightness of spill area, preserving colors.
 Modify alpha from generated spillmap.
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section detelecine
 
 Apply an exact inverse of the telecine operation. It requires a predefined
diff --git a/libavfilter/vf_despill.c b/libavfilter/vf_despill.c
index 64c27f4060..bf6c7ca2cb 100644
--- a/libavfilter/vf_despill.c
+++ b/libavfilter/vf_despill.c
@@ -153,7 +153,7 @@ static const AVFilterPad despill_outputs[] = {
 };
 
 #define OFFSET(x) offsetof(DespillContext, 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
 
 static const AVOption despill_options[] = {
     { "type",       "set the screen type",     OFFSET(type),        
AV_OPT_TYPE_INT,     {.i64=0},     0,   1, FLAGS, "type" },
@@ -179,5 +179,6 @@ AVFilter ff_vf_despill = {
     .query_formats = query_formats,
     .inputs        = despill_inputs,
     .outputs       = despill_outputs,
+    .process_command = ff_filter_process_command,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | 
AVFILTER_FLAG_SLICE_THREADS,
 };

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to