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

Paul B Mahol git at videolan.org
Sun Jun 18 12:12:43 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jun 18 11:05:38 2023 +0200| [8e21f32fe792680c5302df83ef95c738c29742a7] | committer: Paul B Mahol

avfilter/vf_displace: add support for commands

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

 libavfilter/vf_displace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_displace.c b/libavfilter/vf_displace.c
index 4df98d4cc1..ee56f32856 100644
--- a/libavfilter/vf_displace.c
+++ b/libavfilter/vf_displace.c
@@ -49,7 +49,7 @@ typedef struct DisplaceContext {
 } DisplaceContext;
 
 #define OFFSET(x) offsetof(DisplaceContext, 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 displace_options[] = {
     { "edge", "set edge mode", OFFSET(edge), AV_OPT_TYPE_INT, {.i64=EDGE_SMEAR}, 0, EDGE_NB-1, FLAGS, "edge" },
@@ -422,4 +422,5 @@ const AVFilter ff_vf_displace = {
     .priv_class    = &displace_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