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/sink_buffer.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/sink_buffer.c')
-rw-r--r-- | libavfilter/sink_buffer.c | 72 |
1 files changed, 46 insertions, 26 deletions
diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c index f0878f01d0..88fefba0d9 100644 --- a/libavfilter/sink_buffer.c +++ b/libavfilter/sink_buffer.c @@ -234,6 +234,16 @@ static int vsink_query_formats(AVFilterContext *ctx) return 0; } +static const AVFilterPad ffbuffersink_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .end_frame = end_frame, + .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, + }, + { NULL }, +}; + AVFilter avfilter_vsink_ffbuffersink = { .name = "ffbuffersink", .description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."), @@ -242,13 +252,18 @@ AVFilter avfilter_vsink_ffbuffersink = { .uninit = vsink_uninit, .query_formats = vsink_query_formats, + .inputs = ffbuffersink_inputs, + .outputs = NULL, +}; - .inputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .end_frame = end_frame, - .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, }, - { .name = NULL }}, - .outputs = (const AVFilterPad[]) {{ .name = NULL }}, +static const AVFilterPad buffersink_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .end_frame = end_frame, + .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, + }, + { NULL }, }; AVFilter avfilter_vsink_buffersink = { @@ -259,13 +274,8 @@ AVFilter avfilter_vsink_buffersink = { .uninit = vsink_uninit, .query_formats = vsink_query_formats, - - .inputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .end_frame = end_frame, - .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, }, - { .name = NULL }}, - .outputs = (const AVFilterPad[]) {{ .name = NULL }}, + .inputs = buffersink_inputs, + .outputs = NULL, }; static int filter_frame(AVFilterLink *link, AVFilterBufferRef *samplesref) @@ -328,6 +338,16 @@ static int asink_query_formats(AVFilterContext *ctx) return 0; } +static const AVFilterPad ffabuffersink_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + .filter_frame = filter_frame, + .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, + }, + { NULL }, +}; + AVFilter avfilter_asink_ffabuffersink = { .name = "ffabuffersink", .description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."), @@ -335,13 +355,18 @@ AVFilter avfilter_asink_ffabuffersink = { .uninit = asink_uninit, .priv_size = sizeof(BufferSinkContext), .query_formats = asink_query_formats, + .inputs = ffabuffersink_inputs, + .outputs = NULL, +}; - .inputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_AUDIO, - .filter_frame = filter_frame, - .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, }, - { .name = NULL }}, - .outputs = (const AVFilterPad[]) {{ .name = NULL }}, +static const AVFilterPad abuffersink_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, + .filter_frame = filter_frame, + .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, + }, + { NULL }, }; AVFilter avfilter_asink_abuffersink = { @@ -351,13 +376,8 @@ AVFilter avfilter_asink_abuffersink = { .uninit = asink_uninit, .priv_size = sizeof(BufferSinkContext), .query_formats = asink_query_formats, - - .inputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_AUDIO, - .filter_frame = filter_frame, - .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, }, - { .name = NULL }}, - .outputs = (const AVFilterPad[]) {{ .name = NULL }}, + .inputs = abuffersink_inputs, + .outputs = NULL, }; /* Libav compatibility API */ |