From 2d9d4440519f22c092ac37ccd1a1a914564d00b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Wed, 28 Nov 2012 20:01:59 +0100 Subject: lavfi: convert remaining input/output list compound literals to named objects. This is following 568c70e79ee267426c15ef4603c69703f6a5884a. --- libavfilter/vf_thumbnail.c | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) (limited to 'libavfilter/vf_thumbnail.c') diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c index 5936a1936d..5dda94e003 100644 --- a/libavfilter/vf_thumbnail.c +++ b/libavfilter/vf_thumbnail.c @@ -219,6 +219,29 @@ static int query_formats(AVFilterContext *ctx) return 0; } +static const AVFilterPad thumbnail_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .get_video_buffer = ff_null_get_video_buffer, + .min_perms = AV_PERM_PRESERVE, + .start_frame = null_start_frame, + .draw_slice = draw_slice, + .end_frame = end_frame, + }, + { NULL } +}; + +static const AVFilterPad thumbnail_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .request_frame = request_frame, + .poll_frame = poll_frame, + }, + { NULL } +}; + AVFilter avfilter_vf_thumbnail = { .name = "thumbnail", .description = NULL_IF_CONFIG_SMALL("Select the most representative frame in a given sequence of consecutive frames."), @@ -226,21 +249,6 @@ AVFilter avfilter_vf_thumbnail = { .init = init, .uninit = uninit, .query_formats = query_formats, - .inputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .get_video_buffer = ff_null_get_video_buffer, - .min_perms = AV_PERM_PRESERVE, - .start_frame = null_start_frame, - .draw_slice = draw_slice, - .end_frame = end_frame, - },{ .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .request_frame = request_frame, - .poll_frame = poll_frame, - },{ .name = NULL } - }, + .inputs = thumbnail_inputs, + .outputs = thumbnail_outputs, }; -- cgit v1.2.3