aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_select.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2015-10-02 16:29:08 +0200
committerNicolas George <george@nsup.org>2015-10-07 19:05:13 +0200
commitca540fbdb448950b2cc2be82bd1b75cee1bc94f3 (patch)
treed5bf94230bd7fd26769b12646d63c1bbfbe31cc1 /libavfilter/f_select.c
parent4bc7eb2dd232cb77ad8181d0cae05a5fbb1f80de (diff)
downloadffmpeg-ca540fbdb448950b2cc2be82bd1b75cee1bc94f3.tar.gz
lavfi/vf_select: remove looping on request_frame().
Diffstat (limited to 'libavfilter/f_select.c')
-rw-r--r--libavfilter/f_select.c13
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)