Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -454,22 +454,22 @@ static av_cold void uninit(AVFilterContext *ctx) · 453 unmodified lines | ||
| 454 | 454 | av_freep(&s->values[3]); |
| 455 | 455 | } |
| 456 | 456 | |
| 457 | −#if CONFIG_DRAWGRAPH_FILTER | |
| 458 | − | |
| 459 | −static const AVFilterPad drawgraph_inputs[] = { | |
| 457 | +static const AVFilterPad drawgraph_outputs[] = { | |
| 460 | 458 | { |
| 461 | 459 | .name = "default", |
| 462 | 460 | .type = AVMEDIA_TYPE_VIDEO, |
| 463 | − .filter_frame = filter_frame, | |
| 461 | + .config_props = config_output, | |
| 462 | + .request_frame = request_frame, | |
| 464 | 463 | }, |
| 465 | 464 | }; |
| 466 | 465 | |
| 467 | −static const AVFilterPad drawgraph_outputs[] = { | |
| 466 | +#if CONFIG_DRAWGRAPH_FILTER | |
| 467 | + | |
| 468 | +static const AVFilterPad drawgraph_inputs[] = { | |
| 468 | 469 | { |
| 469 | 470 | .name = "default", |
| 470 | 471 | .type = AVMEDIA_TYPE_VIDEO, |
| 471 | − .config_props = config_output, | |
| 472 | − .request_frame = request_frame, | |
| 472 | + .filter_frame = filter_frame, | |
| 473 | 473 | }, |
| 474 | 474 | }; |
| 475 | 475 | |
| @@ -497,15 +497,6 @@ static const AVFilterPad adrawgraph_inputs[] = { · 21 unmodified lines | ||
| 497 | 497 | }, |
| 498 | 498 | }; |
| 499 | 499 | |
| 500 | −static const AVFilterPad adrawgraph_outputs[] = { | |
| 501 | − { | |
| 502 | − .name = "default", | |
| 503 | − .type = AVMEDIA_TYPE_VIDEO, | |
| 504 | − .config_props = config_output, | |
| 505 | − .request_frame = request_frame, | |
| 506 | − }, | |
| 507 | −}; | |
| 508 | − | |
| 509 | 500 | const AVFilter ff_avf_adrawgraph = { |
| 510 | 501 | .name = "adrawgraph", |
| 511 | 502 | .description = NULL_IF_CONFIG_SMALL("Draw a graph using input audio metadata."), |
| @@ -514,7 +505,7 @@ const AVFilter ff_avf_adrawgraph = { · 2 unmodified lines | ||
| 514 | 505 | .init = init, |
| 515 | 506 | .uninit = uninit, |
| 516 | 507 | FILTER_INPUTS(adrawgraph_inputs), |
| 517 | − FILTER_OUTPUTS(adrawgraph_outputs), | |
| 508 | + FILTER_OUTPUTS(drawgraph_outputs), | |
| 518 | 509 | FILTER_QUERY_FUNC(query_formats), |
| 519 | 510 | }; |
| 520 | 511 | #endif // CONFIG_ADRAWGRAPH_FILTER |