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/af_volumedetect.c | |
parent | bff576c779476c5325edb2e90828051138416759 (diff) |
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
Diffstat (limited to 'libavfilter/af_volumedetect.c')
-rw-r--r-- | libavfilter/af_volumedetect.c | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c index 5353e501fe..01f30a6431 100644 --- a/libavfilter/af_volumedetect.c +++ b/libavfilter/af_volumedetect.c @@ -131,6 +131,25 @@ static void uninit(AVFilterContext *ctx) print_stats(ctx); } +static const AVFilterPad volumedetect_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + .get_audio_buffer = ff_null_get_audio_buffer, + .filter_frame = filter_frame, + .min_perms = AV_PERM_READ, + }, + { NULL } +}; + +static const AVFilterPad volumedetect_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + }, + { NULL } +}; + AVFilter avfilter_af_volumedetect = { .name = "volumedetect", .description = NULL_IF_CONFIG_SMALL("Detect audio volume."), @@ -138,18 +157,6 @@ AVFilter avfilter_af_volumedetect = { .priv_size = sizeof(VolDetectContext), .query_formats = query_formats, .uninit = uninit, - - .inputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_AUDIO, - .get_audio_buffer = ff_null_get_audio_buffer, - .filter_frame = filter_frame, - .min_perms = AV_PERM_READ, }, - { .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_AUDIO, }, - { .name = NULL } - }, + .inputs = volumedetect_inputs, + .outputs = volumedetect_outputs, }; |