[FFmpeg-cvslog] lavfi/vf_select: remove looping on request_frame().

Nicolas George git at videolan.org
Wed Oct 7 19:08:35 CEST 2015


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Fri Oct  2 16:29:08 2015 +0200| [ca540fbdb448950b2cc2be82bd1b75cee1bc94f3] | committer: Nicolas George

lavfi/vf_select: remove looping on request_frame().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca540fbdb448950b2cc2be82bd1b75cee1bc94f3
---

 libavfilter/f_select.c |   13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index 3e7cf78..2b926e1 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)



More information about the ffmpeg-cvslog mailing list