diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-11-28 23:01:59 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-11-29 02:19:20 +0400 |
commit | 2d9d4440519f22c092ac37ccd1a1a914564d00b5 (patch) | |
tree | 8bad56e7faafe0c7d28f9211855f6e4d169c88d9 /libavfilter/vf_swapuv.c | |
parent | bff576c779476c5325edb2e90828051138416759 (diff) |
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
Diffstat (limited to 'libavfilter/vf_swapuv.c')
-rw-r--r-- | libavfilter/vf_swapuv.c | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/libavfilter/vf_swapuv.c b/libavfilter/vf_swapuv.c index bfe71e80d9..6345c0d39d 100644 --- a/libavfilter/vf_swapuv.c +++ b/libavfilter/vf_swapuv.c @@ -74,22 +74,29 @@ static int query_formats(AVFilterContext *ctx) return 0; } +static const AVFilterPad swapuv_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .get_video_buffer = get_video_buffer, + .start_frame = start_frame, + }, + { NULL } +}; + +static const AVFilterPad swapuv_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + }, + { NULL } +}; + AVFilter avfilter_vf_swapuv = { .name = "swapuv", .description = NULL_IF_CONFIG_SMALL("Swap U and V components."), .priv_size = 0, .query_formats = query_formats, - - .inputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .get_video_buffer = get_video_buffer, - .start_frame = start_frame, }, - { .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, }, - { .name = NULL } - }, + .inputs = swapuv_inputs, + .outputs = swapuv_outputs, }; |