diff options
Diffstat (limited to 'libavfilter/af_earwax.c')
-rw-r--r-- | libavfilter/af_earwax.c | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/libavfilter/af_earwax.c b/libavfilter/af_earwax.c index 56a6ae1..4a2b8b7 100644 --- a/libavfilter/af_earwax.c +++ b/libavfilter/af_earwax.c @@ -153,19 +153,30 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) return ret; } +static const AVFilterPad earwax_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + .filter_frame = filter_frame, + .config_props = config_input, + .min_perms = AV_PERM_READ, + }, + { NULL } +}; + +static const AVFilterPad earwax_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + }, + { NULL } +}; + AVFilter avfilter_af_earwax = { .name = "earwax", .description = NULL_IF_CONFIG_SMALL("Widen the stereo image."), .query_formats = query_formats, .priv_size = sizeof(EarwaxContext), - .inputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_AUDIO, - .filter_frame = filter_frame, - .config_props = config_input, - .min_perms = AV_PERM_READ, }, - { .name = NULL}}, - - .outputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_AUDIO, }, - { .name = NULL}}, + .inputs = earwax_inputs, + .outputs = earwax_outputs, }; |