[FFmpeg-cvslog] avfilter/vf_(guided|program_opencl): Add missing dynamic inputs flag

Andreas Rheinhardt git at videolan.org
Mon Aug 16 19:19:01 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Aug 10 07:08:53 2021 +0200| [8f51c12f8750efa1f05a61a2535298e64daad1e1] | committer: Andreas Rheinhardt

avfilter/vf_(guided|program_opencl): Add missing dynamic inputs flag

The code for inserting inpads can't be reached by ff_vsrc_openclsrc
(unsurprising given that it is a source filter), so it didn't get
the flag.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavfilter/vf_guided.c         | 3 ++-
 libavfilter/vf_program_opencl.c | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_guided.c b/libavfilter/vf_guided.c
index 5d8796c7bf..4003b9578f 100644
--- a/libavfilter/vf_guided.c
+++ b/libavfilter/vf_guided.c
@@ -500,6 +500,7 @@ const AVFilter ff_vf_guided = {
     .activate        = activate,
     .inputs          = NULL,
     .outputs         = guided_outputs,
-    .flags           = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
+    .flags           = AVFILTER_FLAG_DYNAMIC_INPUTS | AVFILTER_FLAG_SLICE_THREADS |
+                       AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
     .process_command = process_command,
 };
diff --git a/libavfilter/vf_program_opencl.c b/libavfilter/vf_program_opencl.c
index 4b38baeb3c..5f455e9afa 100644
--- a/libavfilter/vf_program_opencl.c
+++ b/libavfilter/vf_program_opencl.c
@@ -367,6 +367,7 @@ const AVFilter ff_vf_program_opencl = {
     .description    = NULL_IF_CONFIG_SMALL("Filter video using an OpenCL program"),
     .priv_size      = sizeof(ProgramOpenCLContext),
     .priv_class     = &program_opencl_class,
+    .flags          = AVFILTER_FLAG_DYNAMIC_INPUTS,
     .preinit        = &program_opencl_framesync_preinit,
     .init           = &program_opencl_init,
     .uninit         = &program_opencl_uninit,



More information about the ffmpeg-cvslog mailing list