diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-09-12 13:48:00 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-09-12 13:50:01 +0200 |
commit | b35653d4c43133295cf856bee628bbad119191db (patch) | |
tree | 2c9fdd51c26424f3bf355f9f6e72209ff3871ca3 | |
parent | 882045f3ddd933780db3ab1ba9f1d39c91f73aca (diff) | |
download | ffmpeg-b35653d4c43133295cf856bee628bbad119191db.tar.gz |
avfilter/vf_extractplanes: stop marking alphaextract filter as dynamic outputs
-rw-r--r-- | libavfilter/vf_extractplanes.c | 13 |
1 files 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 */ |