Unified · Split
| @@ -454,22 +454,22 @@ static av_cold void uninit(AVFilterContext *ctx) · 453 unmodified lines | |||
| 454 | av_freep(&s->values[3]); | 454 | av_freep(&s->values[3]); |
| 455 | } | 455 | } |
| 456 | 456 | ||
| 457 | #if CONFIG_DRAWGRAPH_FILTER | 457 | static const AVFilterPad drawgraph_outputs[] = { |
| 458 | |||
| 459 | static const AVFilterPad drawgraph_inputs[] = { | ||
| 460 | { | 458 | { |
| 461 | .name = "default", | 459 | .name = "default", |
| 462 | .type = AVMEDIA_TYPE_VIDEO, | 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 | .name = "default", | 470 | .name = "default", |
| 470 | .type = AVMEDIA_TYPE_VIDEO, | 471 | .type = AVMEDIA_TYPE_VIDEO, |
| 471 | .config_props = config_output, | 472 | .filter_frame = filter_frame, |
| 472 | .request_frame = request_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 | const AVFilter ff_avf_adrawgraph = { | 500 | const AVFilter ff_avf_adrawgraph = { |
| 510 | .name = "adrawgraph", | 501 | .name = "adrawgraph", |
| 511 | .description = NULL_IF_CONFIG_SMALL("Draw a graph using input audio metadata."), | 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 | .init = init, | 505 | .init = init, |
| 515 | .uninit = uninit, | 506 | .uninit = uninit, |
| 516 | FILTER_INPUTS(adrawgraph_inputs), | 507 | FILTER_INPUTS(adrawgraph_inputs), |
| 517 | FILTER_OUTPUTS(adrawgraph_outputs), | 508 | FILTER_OUTPUTS(drawgraph_outputs), |
| 518 | FILTER_QUERY_FUNC(query_formats), | 509 | FILTER_QUERY_FUNC(query_formats), |
| 519 | }; | 510 | }; |
| 520 | #endif // CONFIG_ADRAWGRAPH_FILTER | 511 | #endif // CONFIG_ADRAWGRAPH_FILTER |