avfilter/f_graphmonitor: Deduplicate outputs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -568,8 +568,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
|
|
||||||
AVFILTER_DEFINE_CLASS_EXT(graphmonitor, "(a)graphmonitor", graphmonitor_options);
|
AVFILTER_DEFINE_CLASS_EXT(graphmonitor, "(a)graphmonitor", graphmonitor_options);
|
||||||
|
|
||||||
#if CONFIG_GRAPHMONITOR_FILTER
|
|
||||||
|
|
||||||
static const AVFilterPad graphmonitor_outputs[] = {
|
static const AVFilterPad graphmonitor_outputs[] = {
|
||||||
{
|
{
|
||||||
.name = "default",
|
.name = "default",
|
||||||
@ -578,6 +576,8 @@ static const AVFilterPad graphmonitor_outputs[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if CONFIG_GRAPHMONITOR_FILTER
|
||||||
|
|
||||||
const AVFilter ff_vf_graphmonitor = {
|
const AVFilter ff_vf_graphmonitor = {
|
||||||
.name = "graphmonitor",
|
.name = "graphmonitor",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Show various filtergraph stats."),
|
.description = NULL_IF_CONFIG_SMALL("Show various filtergraph stats."),
|
||||||
@ -596,14 +596,6 @@ const AVFilter ff_vf_graphmonitor = {
|
|||||||
|
|
||||||
#if CONFIG_AGRAPHMONITOR_FILTER
|
#if CONFIG_AGRAPHMONITOR_FILTER
|
||||||
|
|
||||||
static const AVFilterPad agraphmonitor_outputs[] = {
|
|
||||||
{
|
|
||||||
.name = "default",
|
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
|
||||||
.config_props = config_output,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const AVFilter ff_avf_agraphmonitor = {
|
const AVFilter ff_avf_agraphmonitor = {
|
||||||
.name = "agraphmonitor",
|
.name = "agraphmonitor",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Show various filtergraph stats."),
|
.description = NULL_IF_CONFIG_SMALL("Show various filtergraph stats."),
|
||||||
@ -613,7 +605,7 @@ const AVFilter ff_avf_agraphmonitor = {
|
|||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.activate = activate,
|
.activate = activate,
|
||||||
FILTER_INPUTS(ff_audio_default_filterpad),
|
FILTER_INPUTS(ff_audio_default_filterpad),
|
||||||
FILTER_OUTPUTS(agraphmonitor_outputs),
|
FILTER_OUTPUTS(graphmonitor_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_QUERY_FUNC(query_formats),
|
||||||
.process_command = ff_filter_process_command,
|
.process_command = ff_filter_process_command,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user