History

avfilter/f_drawgraph: Deduplicate outputs

Andreas Rheinhardt committed 3 years ago

Commit a02670d1 parent 59354231 file · +8 −17Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/f_drawgraph.c+8−17
@@ -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_FILTER457static const AVFilterPad drawgraph_outputs[] = {
458
459static 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
467static const AVFilterPad drawgraph_outputs[] = {466#if CONFIG_DRAWGRAPH_FILTER
467
468static 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
500static 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
509const AVFilter ff_avf_adrawgraph = {500const 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_FILTER511#endif // CONFIG_ADRAWGRAPH_FILTER

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t