diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-11-28 23:01:59 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-11-29 02:19:20 +0400 |
commit | 2d9d4440519f22c092ac37ccd1a1a914564d00b5 (patch) | |
tree | 8bad56e7faafe0c7d28f9211855f6e4d169c88d9 /libavfilter/af_aresample.c | |
parent | bff576c779476c5325edb2e90828051138416759 (diff) |
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
Diffstat (limited to 'libavfilter/af_aresample.c')
-rw-r--r-- | libavfilter/af_aresample.c | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c index d3bab45b42..2dcfd695b0 100644 --- a/libavfilter/af_aresample.c +++ b/libavfilter/af_aresample.c @@ -253,6 +253,26 @@ static int request_frame(AVFilterLink *outlink) return ret; } +static const AVFilterPad aresample_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + .filter_frame = filter_frame, + .min_perms = AV_PERM_READ, + }, + { NULL }, +}; + +static const AVFilterPad aresample_outputs[] = { + { + .name = "default", + .config_props = config_output, + .request_frame = request_frame, + .type = AVMEDIA_TYPE_AUDIO, + }, + { NULL }, +}; + AVFilter avfilter_af_aresample = { .name = "aresample", .description = NULL_IF_CONFIG_SMALL("Resample audio data."), @@ -260,15 +280,6 @@ AVFilter avfilter_af_aresample = { .uninit = uninit, .query_formats = query_formats, .priv_size = sizeof(AResampleContext), - - .inputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_AUDIO, - .filter_frame = filter_frame, - .min_perms = AV_PERM_READ, }, - { .name = NULL}}, - .outputs = (const AVFilterPad[]) {{ .name = "default", - .config_props = config_output, - .request_frame = request_frame, - .type = AVMEDIA_TYPE_AUDIO, }, - { .name = NULL}}, + .inputs = aresample_inputs, + .outputs = aresample_outputs, }; |