aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_fps.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2015-10-02 16:16:10 +0200
committerNicolas George <george@nsup.org>2015-10-07 19:05:13 +0200
commit4bc7eb2dd232cb77ad8181d0cae05a5fbb1f80de (patch)
tree6e13a5ba869cc1828a36ea0885d180cad5054b40 /libavfilter/vf_fps.c
parenta45e96a54fc408bc1ea5b09572354f63b1c4b523 (diff)
downloadffmpeg-4bc7eb2dd232cb77ad8181d0cae05a5fbb1f80de.tar.gz
lavfi/vf_fps: remove looping on request_frame().
Diffstat (limited to 'libavfilter/vf_fps.c')
-rw-r--r--libavfilter/vf_fps.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index 6154f6d43e..0500e97500 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -126,11 +126,9 @@ static int request_frame(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
FPSContext *s = ctx->priv;
- int frames_out = s->frames_out;
- int ret = 0;
+ int ret;
- while (ret >= 0 && s->frames_out == frames_out)
- ret = ff_request_frame(ctx->inputs[0]);
+ ret = ff_request_frame(ctx->inputs[0]);
/* flush the fifo */
if (ret == AVERROR_EOF && av_fifo_size(s->fifo)) {