mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avfilter/f_drawgraph: Deduplicate outputs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5935423e1e
commit
a02670ded7
@ -454,6 +454,15 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
av_freep(&s->values[3]);
|
av_freep(&s->values[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const AVFilterPad drawgraph_outputs[] = {
|
||||||
|
{
|
||||||
|
.name = "default",
|
||||||
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
|
.config_props = config_output,
|
||||||
|
.request_frame = request_frame,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
#if CONFIG_DRAWGRAPH_FILTER
|
#if CONFIG_DRAWGRAPH_FILTER
|
||||||
|
|
||||||
static const AVFilterPad drawgraph_inputs[] = {
|
static const AVFilterPad drawgraph_inputs[] = {
|
||||||
@ -464,15 +473,6 @@ static const AVFilterPad drawgraph_inputs[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const AVFilterPad drawgraph_outputs[] = {
|
|
||||||
{
|
|
||||||
.name = "default",
|
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
|
||||||
.config_props = config_output,
|
|
||||||
.request_frame = request_frame,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const AVFilter ff_vf_drawgraph = {
|
const AVFilter ff_vf_drawgraph = {
|
||||||
.name = "drawgraph",
|
.name = "drawgraph",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Draw a graph using input video metadata."),
|
.description = NULL_IF_CONFIG_SMALL("Draw a graph using input video metadata."),
|
||||||
@ -497,15 +497,6 @@ static const AVFilterPad adrawgraph_inputs[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const AVFilterPad adrawgraph_outputs[] = {
|
|
||||||
{
|
|
||||||
.name = "default",
|
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
|
||||||
.config_props = config_output,
|
|
||||||
.request_frame = request_frame,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const AVFilter ff_avf_adrawgraph = {
|
const AVFilter ff_avf_adrawgraph = {
|
||||||
.name = "adrawgraph",
|
.name = "adrawgraph",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Draw a graph using input audio metadata."),
|
.description = NULL_IF_CONFIG_SMALL("Draw a graph using input audio metadata."),
|
||||||
@ -514,7 +505,7 @@ const AVFilter ff_avf_adrawgraph = {
|
|||||||
.init = init,
|
.init = init,
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
FILTER_INPUTS(adrawgraph_inputs),
|
FILTER_INPUTS(adrawgraph_inputs),
|
||||||
FILTER_OUTPUTS(adrawgraph_outputs),
|
FILTER_OUTPUTS(drawgraph_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_QUERY_FUNC(query_formats),
|
||||||
};
|
};
|
||||||
#endif // CONFIG_ADRAWGRAPH_FILTER
|
#endif // CONFIG_ADRAWGRAPH_FILTER
|
||||||
|
Loading…
Reference in New Issue
Block a user