Unified · Split
| @@ -388,9 +388,17 @@ static av_cold int init_alphaextract(AVFilterContext *ctx) · 387 unmodified lines | |||
| 388 | 388 | ||
| 389 | s->requested_planes = PLANE_A; | 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 | const AVFilter ff_vf_alphaextract = { | 402 | const AVFilter ff_vf_alphaextract = { |
| 395 | .name = "alphaextract", | 403 | .name = "alphaextract", |
| 396 | .description = NULL_IF_CONFIG_SMALL("Extract an alpha channel as a " | 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 | .init = init_alphaextract, | 407 | .init = init_alphaextract, |
| 400 | .query_formats = query_formats, | 408 | .query_formats = query_formats, |
| 401 | FILTER_INPUTS(extractplanes_inputs), | 409 | FILTER_INPUTS(extractplanes_inputs), |
| 402 | .outputs = NULL, | 410 | FILTER_OUTPUTS(alphaextract_outputs), |
| 403 | .flags = AVFILTER_FLAG_DYNAMIC_OUTPUTS, | ||
| 404 | }; | 411 | }; |
| 405 | #endif /* CONFIG_ALPHAEXTRACT_FILTER */ | 412 | #endif /* CONFIG_ALPHAEXTRACT_FILTER */ |