From 2d9d4440519f22c092ac37ccd1a1a914564d00b5 Mon Sep 17 00:00:00 2001 From: Clément Bœsch 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_decimate.c | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'libavfilter/vf_decimate.c') diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c index 8d54d39011..0f516e2364 100644 --- a/libavfilter/vf_decimate.c +++ b/libavfilter/vf_decimate.c @@ -235,6 +235,29 @@ static int request_frame(AVFilterLink *outlink) return ret; } +static const AVFilterPad decimate_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .get_video_buffer = ff_null_get_video_buffer, + .config_props = config_input, + .start_frame = start_frame, + .draw_slice = draw_slice, + .end_frame = end_frame, + .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, + }, + { NULL } +}; + +static const AVFilterPad decimate_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .request_frame = request_frame, + }, + { NULL } +}; + AVFilter avfilter_vf_decimate = { .name = "decimate", .description = NULL_IF_CONFIG_SMALL("Remove near-duplicate frames."), @@ -243,26 +266,6 @@ AVFilter avfilter_vf_decimate = { .priv_size = sizeof(DecimateContext), .query_formats = query_formats, - - .inputs = (const AVFilterPad[]) { - { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .get_video_buffer = ff_null_get_video_buffer, - .config_props = config_input, - .start_frame = start_frame, - .draw_slice = draw_slice, - .end_frame = end_frame, - .min_perms = AV_PERM_READ | AV_PERM_PRESERVE, - }, - { .name = NULL } - }, - .outputs = (const AVFilterPad[]) { - { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .request_frame = request_frame, - }, - { .name = NULL } - }, + .inputs = decimate_inputs, + .outputs = decimate_outputs, }; -- cgit v1.2.3