diff options
author | Nicolas George <george@nsup.org> | 2015-10-02 16:29:08 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2015-10-07 19:05:13 +0200 |
commit | ca540fbdb448950b2cc2be82bd1b75cee1bc94f3 (patch) | |
tree | d5bf94230bd7fd26769b12646d63c1bbfbe31cc1 /libavfilter/f_select.c | |
parent | 4bc7eb2dd232cb77ad8181d0cae05a5fbb1f80de (diff) | |
download | ffmpeg-ca540fbdb448950b2cc2be82bd1b75cee1bc94f3.tar.gz |
lavfi/vf_select: remove looping on request_frame().
Diffstat (limited to 'libavfilter/f_select.c')
-rw-r--r-- | libavfilter/f_select.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c index 3e7cf782ed..2b926e1e14 100644 --- a/libavfilter/f_select.c +++ b/libavfilter/f_select.c @@ -379,18 +379,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) static int request_frame(AVFilterLink *outlink) { - AVFilterContext *ctx = outlink->src; - SelectContext *select = ctx->priv; AVFilterLink *inlink = outlink->src->inputs[0]; - int out_no = FF_OUTLINK_IDX(outlink); - - do { - int ret = ff_request_frame(inlink); - if (ret < 0) - return ret; - } while (select->select_out != out_no); - - return 0; + int ret = ff_request_frame(inlink); + return ret; } static av_cold void uninit(AVFilterContext *ctx) |