summaryrefslogtreecommitdiff
path: root/libavfilter/f_settb.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-11-28 20:01:59 +0100
committerClément Bœsch <ubitux@gmail.com>2012-11-28 23:19:20 +0100
commit2d9d4440519f22c092ac37ccd1a1a914564d00b5 (patch)
tree8bad56e7faafe0c7d28f9211855f6e4d169c88d9 /libavfilter/f_settb.c
parentbff576c779476c5325edb2e90828051138416759 (diff)
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
Diffstat (limited to 'libavfilter/f_settb.c')
-rw-r--r--libavfilter/f_settb.c35
1 files changed, 21 insertions, 14 deletions
diff --git a/libavfilter/f_settb.c b/libavfilter/f_settb.c
index 5b9434ef82..99ea7a7826 100644
--- a/libavfilter/f_settb.c
+++ b/libavfilter/f_settb.c
@@ -152,25 +152,32 @@ AVFilter avfilter_vf_settb = {
#endif
#if CONFIG_ASETTB_FILTER
+static const AVFilterPad avfilter_af_asettb_inputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_AUDIO,
+ .get_audio_buffer = ff_null_get_audio_buffer,
+ .filter_frame = filter_frame,
+ },
+ { NULL }
+};
+
+static const AVFilterPad avfilter_af_asettb_outputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_AUDIO,
+ .config_props = config_output_props,
+ },
+ { NULL }
+};
+
AVFilter avfilter_af_asettb = {
.name = "asettb",
.description = NULL_IF_CONFIG_SMALL("Set timebase for the audio output link."),
.init = init,
.priv_size = sizeof(SetTBContext),
-
- .inputs = (const AVFilterPad[]) {
- { .name = "default",
- .type = AVMEDIA_TYPE_AUDIO,
- .get_audio_buffer = ff_null_get_audio_buffer,
- .filter_frame = filter_frame, },
- { .name = NULL }
- },
- .outputs = (const AVFilterPad[]) {
- { .name = "default",
- .type = AVMEDIA_TYPE_AUDIO,
- .config_props = config_output_props, },
- { .name = NULL}
- },
+ .inputs = avfilter_af_asettb_inputs,
+ .outputs = avfilter_af_asettb_outputs,
};
#endif