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/f_setpts.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/f_setpts.c')
-rw-r--r-- | libavfilter/f_setpts.c | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/libavfilter/f_setpts.c b/libavfilter/f_setpts.c index 47465875b7..e5636e2522 100644 --- a/libavfilter/f_setpts.c +++ b/libavfilter/f_setpts.c @@ -183,31 +183,33 @@ static av_cold void uninit(AVFilterContext *ctx) } #if CONFIG_ASETPTS_FILTER +static const AVFilterPad avfilter_af_asetpts_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + .get_audio_buffer = ff_null_get_audio_buffer, + .config_props = config_input, + .filter_frame = filter_frame, + }, + { NULL } +}; + +static const AVFilterPad avfilter_af_asetpts_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + }, + { NULL } +}; + AVFilter avfilter_af_asetpts = { .name = "asetpts", .description = NULL_IF_CONFIG_SMALL("Set PTS for the output audio frame."), .init = init, .uninit = uninit, - .priv_size = sizeof(SetPTSContext), - - .inputs = (const AVFilterPad[]) { - { - .name = "default", - .type = AVMEDIA_TYPE_AUDIO, - .get_audio_buffer = ff_null_get_audio_buffer, - .config_props = config_input, - .filter_frame = filter_frame, - }, - { .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { - .name = "default", - .type = AVMEDIA_TYPE_AUDIO, - }, - { .name = NULL } - }, + .inputs = avfilter_af_asetpts_inputs, + .outputs = avfilter_af_asetpts_outputs, }; #endif /* CONFIG_ASETPTS_FILTER */ |