diff options
Diffstat (limited to 'libavfilter/af_pan.c')
-rw-r--r-- | libavfilter/af_pan.c | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c index 3531058..922025a 100644 --- a/libavfilter/af_pan.c +++ b/libavfilter/af_pan.c @@ -376,6 +376,25 @@ static av_cold void uninit(AVFilterContext *ctx) swr_free(&pan->swr); } +static const AVFilterPad pan_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + .config_props = config_props, + .filter_frame = filter_frame, + .min_perms = AV_PERM_READ, + }, + { NULL } +}; + +static const AVFilterPad pan_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + }, + { NULL } +}; + AVFilter avfilter_af_pan = { .name = "pan", .description = NULL_IF_CONFIG_SMALL("Remix channels with coefficients (panning)."), @@ -383,18 +402,6 @@ AVFilter avfilter_af_pan = { .init = init, .uninit = uninit, .query_formats = query_formats, - - .inputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_AUDIO, - .config_props = config_props, - .filter_frame = filter_frame, - .min_perms = AV_PERM_READ, }, - { .name = NULL} - }, - .outputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_AUDIO, }, - { .name = NULL} - }, + .inputs = pan_inputs, + .outputs = pan_outputs, }; |