summaryrefslogtreecommitdiffstats
path: root/libavfilter/asrc_aevalsrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/asrc_aevalsrc.c')
-rw-r--r--libavfilter/asrc_aevalsrc.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c
index a834bc2..eaf7975 100644
--- a/libavfilter/asrc_aevalsrc.c
+++ b/libavfilter/asrc_aevalsrc.c
@@ -242,6 +242,16 @@ static int request_frame(AVFilterLink *outlink)
return 0;
}
+static const AVFilterPad aevalsrc_outputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_AUDIO,
+ .config_props = config_props,
+ .request_frame = request_frame,
+ },
+ { NULL }
+};
+
AVFilter avfilter_asrc_aevalsrc = {
.name = "aevalsrc",
.description = NULL_IF_CONFIG_SMALL("Generate an audio signal generated by an expression."),
@@ -250,13 +260,7 @@ AVFilter avfilter_asrc_aevalsrc = {
.init = init,
.uninit = uninit,
.priv_size = sizeof(EvalContext),
-
- .inputs = (const AVFilterPad[]) {{ .name = NULL}},
-
- .outputs = (const AVFilterPad[]) {{ .name = "default",
- .type = AVMEDIA_TYPE_AUDIO,
- .config_props = config_props,
- .request_frame = request_frame, },
- { .name = NULL}},
- .priv_class = &aevalsrc_class,
+ .inputs = NULL,
+ .outputs = aevalsrc_outputs,
+ .priv_class = &aevalsrc_class,
};
OpenPOWER on IntegriCloud