History

avfilter/vf_extractplanes: stop marking alphaextract filter as dynamic outputs

Paul B Mahol committed 5 years ago

Commit b35653d1 parent 882045f1 file · +10 −3Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_extractplanes.c+10−3
@@ -388,9 +388,17 @@ static av_cold int init_alphaextract(AVFilterContext *ctx) · 387 unmodified lines
388388
389389 s->requested_planes = PLANE_A;
390390
391− return init(ctx);
391+ return 0;
392392 }
393393
394+static const AVFilterPad alphaextract_outputs[] = {
395+ {
396+ .name = "default",
397+ .type = AVMEDIA_TYPE_VIDEO,
398+ .config_props = config_output,
399+ },
400+};
401+
394402 const AVFilter ff_vf_alphaextract = {
395403 .name = "alphaextract",
396404 .description = NULL_IF_CONFIG_SMALL("Extract an alpha channel as a "
@@ -399,7 +407,6 @@ const AVFilter ff_vf_alphaextract = { · 2 unmodified lines
399407 .init = init_alphaextract,
400408 .query_formats = query_formats,
401409 FILTER_INPUTS(extractplanes_inputs),
402− .outputs = NULL,
403− .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS,
410+ FILTER_OUTPUTS(alphaextract_outputs),
404411 };
405412 #endif /* CONFIG_ALPHAEXTRACT_FILTER */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t