diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-11-28 20:01:59 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-11-28 23:19:20 +0100 |
commit | 2d9d4440519f22c092ac37ccd1a1a914564d00b5 (patch) | |
tree | 8bad56e7faafe0c7d28f9211855f6e4d169c88d9 /libavfilter/asrc_flite.c | |
parent | bff576c779476c5325edb2e90828051138416759 (diff) | |
download | ffmpeg-2d9d4440519f22c092ac37ccd1a1a914564d00b5.tar.gz |
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
Diffstat (limited to 'libavfilter/asrc_flite.c')
-rw-r--r-- | libavfilter/asrc_flite.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/libavfilter/asrc_flite.c b/libavfilter/asrc_flite.c index 0718699c6e..04901da396 100644 --- a/libavfilter/asrc_flite.c +++ b/libavfilter/asrc_flite.c @@ -268,6 +268,16 @@ static int request_frame(AVFilterLink *outlink) return ff_filter_frame(outlink, samplesref); } +static const AVFilterPad flite_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + .config_props = config_props, + .request_frame = request_frame, + }, + { NULL } +}; + AVFilter avfilter_asrc_flite = { .name = "flite", .description = NULL_IF_CONFIG_SMALL("Synthesize voice from text using libflite."), @@ -275,18 +285,7 @@ AVFilter avfilter_asrc_flite = { .init = init, .uninit = uninit, .priv_size = sizeof(FliteContext), - - .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 = &flite_class, + .inputs = NULL, + .outputs = flite_outputs, + .priv_class = &flite_class, }; |