diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-26 18:52:11 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-27 09:55:39 +0000 |
commit | c63e4e65698f4abd9d03764a8ded1ccdb3d654e7 (patch) | |
tree | 80e5d33aff47557d716843c1526e46a9e3d15acb /libavfilter/vf_idet.c | |
parent | 1c711b6ecd535972ffc00f9424173ae111c67358 (diff) | |
download | ffmpeg-c63e4e65698f4abd9d03764a8ded1ccdb3d654e7.tar.gz |
lavfi/idet: remove request_frame hack
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_idet.c')
-rw-r--r-- | libavfilter/vf_idet.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index 70aae92228..3b1281e7a2 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -206,21 +206,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref) return ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->cur)); } -static int request_frame(AVFilterLink *link) -{ - AVFilterContext *ctx = link->src; - IDETContext *idet = ctx->priv; - - do { - int ret; - - if ((ret = ff_request_frame(link->src->inputs[0]))) - return ret; - } while (!idet->cur); - - return 0; -} - static av_cold void uninit(AVFilterContext *ctx) { IDETContext *idet = ctx->priv; @@ -273,6 +258,12 @@ static int query_formats(AVFilterContext *ctx) return 0; } +static int config_output(AVFilterLink *outlink) +{ + outlink->flags |= FF_LINK_FLAG_REQUEST_LOOP; + return 0; +} + static av_cold int init(AVFilterContext *ctx) { IDETContext *idet = ctx->priv; @@ -299,7 +290,7 @@ static const AVFilterPad idet_outputs[] = { { .name = "default", .type = AVMEDIA_TYPE_VIDEO, - .request_frame = request_frame, + .config_props = config_output, }, { NULL } }; |