summaryrefslogtreecommitdiff
path: root/libavfilter/vf_framestep.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-11-28 20:01:59 +0100
committerClément Bœsch <ubitux@gmail.com>2012-11-28 23:19:20 +0100
commit2d9d4440519f22c092ac37ccd1a1a914564d00b5 (patch)
tree8bad56e7faafe0c7d28f9211855f6e4d169c88d9 /libavfilter/vf_framestep.c
parentbff576c779476c5325edb2e90828051138416759 (diff)
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
Diffstat (limited to 'libavfilter/vf_framestep.c')
-rw-r--r--libavfilter/vf_framestep.c45
1 files changed, 24 insertions, 21 deletions
diff --git a/libavfilter/vf_framestep.c b/libavfilter/vf_framestep.c
index dcb2665053..2d14d3c496 100644
--- a/libavfilter/vf_framestep.c
+++ b/libavfilter/vf_framestep.c
@@ -111,30 +111,33 @@ static int request_frame(AVFilterLink *outlink)
return ret;
}
+static const AVFilterPad framestep_inputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .get_video_buffer = ff_null_get_video_buffer,
+ .start_frame = start_frame,
+ .draw_slice = draw_slice,
+ .end_frame = end_frame,
+ },
+ { NULL }
+};
+
+static const AVFilterPad framestep_outputs[] = {
+ {
+ .name = "default",
+ .type = AVMEDIA_TYPE_VIDEO,
+ .config_props = config_output_props,
+ .request_frame = request_frame,
+ },
+ { NULL }
+};
+
AVFilter avfilter_vf_framestep = {
.name = "framestep",
.description = NULL_IF_CONFIG_SMALL("Select one frame every N frames."),
.init = init,
.priv_size = sizeof(FrameStepContext),
-
- .inputs = (const AVFilterPad[]) {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .get_video_buffer = ff_null_get_video_buffer,
- .start_frame = start_frame,
- .draw_slice = draw_slice,
- .end_frame = end_frame,
- },
- { .name = NULL }
- },
- .outputs = (const AVFilterPad[]) {
- {
- .name = "default",
- .type = AVMEDIA_TYPE_VIDEO,
- .config_props = config_output_props,
- .request_frame = request_frame,
- },
- { .name = NULL }
- },
+ .inputs = framestep_inputs,
+ .outputs = framestep_outputs,
};