diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-01 16:26:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-01 20:26:26 +0100 |
commit | 4ef4bb4a203e8f472ab0484396270b9430862037 (patch) | |
tree | 4f7b1f27b0c87e803a97fa04800fe94ec1dada9a /libavfilter | |
parent | 4d028f92807e1a6296dfdd1f94736fcbdc27fcbd (diff) | |
download | ffmpeg-4ef4bb4a203e8f472ab0484396270b9430862037.tar.gz |
avfilter/yadif: Revert "lavfi: convert input/ouput list compound literals to named objects"
This reverts commit 568c70e79ee267426c15ef4603c69703f6a5884a.
This reduces the amount of non LGPL code, making a relicensing to LGPL
easier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_yadif.c | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index 7ffce9ad16..1857ca9d87 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -517,25 +517,6 @@ static const AVOption yadif_options[] = { AVFILTER_DEFINE_CLASS(yadif); -static const AVFilterPad avfilter_vf_yadif_inputs[] = { - { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .filter_frame = filter_frame, - }, - { NULL } -}; - -static const AVFilterPad avfilter_vf_yadif_outputs[] = { - { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .request_frame = request_frame, - .config_props = config_props, - }, - { NULL } -}; - AVFilter ff_vf_yadif = { .name = "yadif", .description = NULL_IF_CONFIG_SMALL("Deinterlace the input image."), @@ -543,7 +524,19 @@ AVFilter ff_vf_yadif = { .priv_class = &yadif_class, .uninit = uninit, .query_formats = query_formats, - .inputs = avfilter_vf_yadif_inputs, - .outputs = avfilter_vf_yadif_outputs, + + .inputs = (const AVFilterPad[]) {{ .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .filter_frame = filter_frame, + }, + { .name = NULL}}, + + .outputs = (const AVFilterPad[]) {{ .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .request_frame = request_frame, + .config_props = config_props, + }, + { .name = NULL}}, + .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, }; |