History

avfilter/f_drawgraph: Deduplicate outputs

Andreas Rheinhardt committed 3 years ago

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

Unified · Split

libavfilter/f_drawgraph.c+8−17
@@ -454,22 +454,22 @@ static av_cold void uninit(AVFilterContext *ctx) · 453 unmodified lines
454454 av_freep(&s->values[3]);
455455 }
456456
457−#if CONFIG_DRAWGRAPH_FILTER
458−
459−static const AVFilterPad drawgraph_inputs[] = {
457+static const AVFilterPad drawgraph_outputs[] = {
460458 {
461459 .name = "default",
462460 .type = AVMEDIA_TYPE_VIDEO,
463− .filter_frame = filter_frame,
461+ .config_props = config_output,
462+ .request_frame = request_frame,
464463 },
465464 };
466465
467−static const AVFilterPad drawgraph_outputs[] = {
466+#if CONFIG_DRAWGRAPH_FILTER
467+
468+static const AVFilterPad drawgraph_inputs[] = {
468469 {
469470 .name = "default",
470471 .type = AVMEDIA_TYPE_VIDEO,
471− .config_props = config_output,
472− .request_frame = request_frame,
472+ .filter_frame = filter_frame,
473473 },
474474 };
475475
@@ -497,15 +497,6 @@ static const AVFilterPad adrawgraph_inputs[] = { · 21 unmodified lines
497497 },
498498 };
499499
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−
509500 const AVFilter ff_avf_adrawgraph = {
510501 .name = "adrawgraph",
511502 .description = NULL_IF_CONFIG_SMALL("Draw a graph using input audio metadata."),
@@ -514,7 +505,7 @@ const AVFilter ff_avf_adrawgraph = { · 2 unmodified lines
514505 .init = init,
515506 .uninit = uninit,
516507 FILTER_INPUTS(adrawgraph_inputs),
517− FILTER_OUTPUTS(adrawgraph_outputs),
508+ FILTER_OUTPUTS(drawgraph_outputs),
518509 FILTER_QUERY_FUNC(query_formats),
519510 };
520511 #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