diff options
author | Matthieu Bouron <matthieu.bouron@gmail.com> | 2012-12-08 16:50:44 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-12-08 17:19:17 +0100 |
commit | 7f154bd54f27b46ed823dfe0beedb688edd43492 (patch) | |
tree | 96bd635955f6dbba71c2585a189db0452cfe8d48 /libavfilter | |
parent | 4cd40ef343d396ba56e1aefbbc59d002fbb6662f (diff) | |
download | ffmpeg-7f154bd54f27b46ed823dfe0beedb688edd43492.tar.gz |
lavfi/setfield: switch to filter_frame API
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_setfield.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/vf_setfield.c b/libavfilter/vf_setfield.c index c62ee36a35..026b965548 100644 --- a/libavfilter/vf_setfield.c +++ b/libavfilter/vf_setfield.c @@ -24,6 +24,7 @@ */ #include "avfilter.h" +#include "internal.h" #include "video.h" enum SetFieldMode { @@ -69,18 +70,17 @@ static av_cold int init(AVFilterContext *ctx, const char *args) return 0; } -static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) +static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { SetFieldContext *setfield = inlink->dst->priv; - AVFilterBufferRef *outpicref = avfilter_ref_buffer(inpicref, ~0); if (setfield->mode == MODE_PROG) { - outpicref->video->interlaced = 0; + picref->video->interlaced = 0; } else if (setfield->mode != MODE_AUTO) { - outpicref->video->interlaced = 1; - outpicref->video->top_field_first = setfield->mode; + picref->video->interlaced = 1; + picref->video->top_field_first = setfield->mode; } - return ff_start_frame(inlink->dst->outputs[0], outpicref); + return ff_filter_frame(inlink->dst->outputs[0], picref); } static const AVFilterPad setfield_inputs[] = { @@ -88,7 +88,7 @@ static const AVFilterPad setfield_inputs[] = { .name = "default", .type = AVMEDIA_TYPE_VIDEO, .get_video_buffer = ff_null_get_video_buffer, - .start_frame = start_frame, + .filter_frame = filter_frame, }, { NULL } }; |