[FFmpeg-cvslog] avfilter/vf_extractplanes: stop marking alphaextract filter as dynamic outputs

Paul B Mahol git at videolan.org
Sun Sep 12 14:50:27 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 12 13:48:00 2021 +0200| [b35653d4c43133295cf856bee628bbad119191db] | committer: Paul B Mahol

avfilter/vf_extractplanes: stop marking alphaextract filter as dynamic outputs

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

 libavfilter/vf_extractplanes.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c
index 972cc17329..111a132cad 100644
--- a/libavfilter/vf_extractplanes.c
+++ b/libavfilter/vf_extractplanes.c
@@ -388,9 +388,17 @@ static av_cold int init_alphaextract(AVFilterContext *ctx)
 
     s->requested_planes = PLANE_A;
 
-    return init(ctx);
+    return 0;
 }
 
+static const AVFilterPad alphaextract_outputs[] = {
+    {
+        .name         = "default",
+        .type         = AVMEDIA_TYPE_VIDEO,
+        .config_props = config_output,
+    },
+};
+
 const AVFilter ff_vf_alphaextract = {
     .name           = "alphaextract",
     .description    = NULL_IF_CONFIG_SMALL("Extract an alpha channel as a "
@@ -399,7 +407,6 @@ const AVFilter ff_vf_alphaextract = {
     .init           = init_alphaextract,
     .query_formats  = query_formats,
     FILTER_INPUTS(extractplanes_inputs),
-    .outputs        = NULL,
-    .flags          = AVFILTER_FLAG_DYNAMIC_OUTPUTS,
+    FILTER_OUTPUTS(alphaextract_outputs),
 };
 #endif  /* CONFIG_ALPHAEXTRACT_FILTER */



More information about the ffmpeg-cvslog mailing list