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/vf_tile.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/vf_tile.c')
-rw-r--r-- | libavfilter/vf_tile.c | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/libavfilter/vf_tile.c b/libavfilter/vf_tile.c index 4c619ffef2..484a976de3 100644 --- a/libavfilter/vf_tile.c +++ b/libavfilter/vf_tile.c @@ -240,6 +240,27 @@ static int request_frame(AVFilterLink *outlink) return 0; } +static const AVFilterPad tile_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .start_frame = start_frame, + .draw_slice = draw_slice, + .end_frame = end_frame, + .min_perms = AV_PERM_READ, + }, + { NULL } +}; + +static const AVFilterPad tile_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .config_props = config_props, + .request_frame = request_frame, + }, + { NULL } +}; AVFilter avfilter_vf_tile = { .name = "tile", @@ -247,21 +268,7 @@ AVFilter avfilter_vf_tile = { .init = init, .query_formats = query_formats, .priv_size = sizeof(TileContext), - .inputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .start_frame = start_frame, - .draw_slice = draw_slice, - .end_frame = end_frame, - .min_perms = AV_PERM_READ, }, - { .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .config_props = config_props, - .request_frame = request_frame }, - { .name = NULL } - }, - .priv_class = &tile_class, + .inputs = tile_inputs, + .outputs = tile_outputs, + .priv_class = &tile_class, }; |