Unified · Split
| @@ -388,9 +388,17 @@ static av_cold int init_alphaextract(AVFilterContext *ctx) · 387 unmodified lines | ||
| 388 | 388 | |
| 389 | 389 | s->requested_planes = PLANE_A; |
| 390 | 390 | |
| 391 | − return init(ctx); | |
| 391 | + return 0; | |
| 392 | 392 | } |
| 393 | 393 | |
| 394 | +static const AVFilterPad alphaextract_outputs[] = { | |
| 395 | + { | |
| 396 | + .name = "default", | |
| 397 | + .type = AVMEDIA_TYPE_VIDEO, | |
| 398 | + .config_props = config_output, | |
| 399 | + }, | |
| 400 | +}; | |
| 401 | + | |
| 394 | 402 | const AVFilter ff_vf_alphaextract = { |
| 395 | 403 | .name = "alphaextract", |
| 396 | 404 | .description = NULL_IF_CONFIG_SMALL("Extract an alpha channel as a " |
| @@ -399,7 +407,6 @@ const AVFilter ff_vf_alphaextract = { · 2 unmodified lines | ||
| 399 | 407 | .init = init_alphaextract, |
| 400 | 408 | .query_formats = query_formats, |
| 401 | 409 | FILTER_INPUTS(extractplanes_inputs), |
| 402 | − .outputs = NULL, | |
| 403 | − .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS, | |
| 410 | + FILTER_OUTPUTS(alphaextract_outputs), | |
| 404 | 411 | }; |
| 405 | 412 | #endif /* CONFIG_ALPHAEXTRACT_FILTER */ |