Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -378,6 +378,14 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar · 377 unmodified lines | ||
| 378 | 378 | return config_params(ctx); |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | +static const AVFilterPad blend_outputs[] = { | |
| 382 | + { | |
| 383 | + .name = "default", | |
| 384 | + .type = AVMEDIA_TYPE_VIDEO, | |
| 385 | + .config_props = config_output, | |
| 386 | + }, | |
| 387 | +}; | |
| 388 | + | |
| 381 | 389 | #if CONFIG_BLEND_FILTER |
| 382 | 390 | |
| 383 | 391 | static int activate(AVFilterContext *ctx) |
| @@ -396,14 +404,6 @@ static const AVFilterPad blend_inputs[] = { · 12 unmodified lines | ||
| 396 | 404 | }, |
| 397 | 405 | }; |
| 398 | 406 | |
| 399 | −static const AVFilterPad blend_outputs[] = { | |
| 400 | − { | |
| 401 | − .name = "default", | |
| 402 | − .type = AVMEDIA_TYPE_VIDEO, | |
| 403 | − .config_props = config_output, | |
| 404 | − }, | |
| 405 | −}; | |
| 406 | − | |
| 407 | 407 | const AVFilter ff_vf_blend = { |
| 408 | 408 | .name = "blend", |
| 409 | 409 | .description = NULL_IF_CONFIG_SMALL("Blend two video frames into each other."), |
| @@ -455,14 +455,6 @@ static const AVFilterPad tblend_inputs[] = { · 45 unmodified lines | ||
| 455 | 455 | }, |
| 456 | 456 | }; |
| 457 | 457 | |
| 458 | −static const AVFilterPad tblend_outputs[] = { | |
| 459 | − { | |
| 460 | − .name = "default", | |
| 461 | − .type = AVMEDIA_TYPE_VIDEO, | |
| 462 | − .config_props = config_output, | |
| 463 | − }, | |
| 464 | −}; | |
| 465 | − | |
| 466 | 458 | const AVFilter ff_vf_tblend = { |
| 467 | 459 | .name = "tblend", |
| 468 | 460 | .description = NULL_IF_CONFIG_SMALL("Blend successive frames."), |
| @@ -471,7 +463,7 @@ const AVFilter ff_vf_tblend = { · 2 unmodified lines | ||
| 471 | 463 | .init = init, |
| 472 | 464 | .uninit = uninit, |
| 473 | 465 | FILTER_INPUTS(tblend_inputs), |
| 474 | − FILTER_OUTPUTS(tblend_outputs), | |
| 466 | + FILTER_OUTPUTS(blend_outputs), | |
| 475 | 467 | FILTER_PIXFMTS_ARRAY(pix_fmts), |
| 476 | 468 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, |
| 477 | 469 | .process_command = process_command, |