diff options
author | Nicolas George <george@nsup.org> | 2015-10-02 16:19:55 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2015-10-07 19:05:13 +0200 |
commit | 73a5546ba8e211dd23339be285f1786c0001b25c (patch) | |
tree | f93ff391a4ec1600236411b36e9e6e675a4ce267 /libavfilter/vf_thumbnail.c | |
parent | ca540fbdb448950b2cc2be82bd1b75cee1bc94f3 (diff) | |
download | ffmpeg-73a5546ba8e211dd23339be285f1786c0001b25c.tar.gz |
lavfi/vf_thumbnail: remove looping on request_frame().
Diffstat (limited to 'libavfilter/vf_thumbnail.c')
-rw-r--r-- | libavfilter/vf_thumbnail.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c index c378791666..64cedd449f 100644 --- a/libavfilter/vf_thumbnail.c +++ b/libavfilter/vf_thumbnail.c @@ -172,9 +172,7 @@ static int request_frame(AVFilterLink *link) AVFilterContext *ctx = link->src; ThumbContext *s = ctx->priv; - /* loop until a frame thumbnail is available (when a frame is queued, - * s->n is reset to zero) */ - do { + /* TODO reindent */ int ret = ff_request_frame(ctx->inputs[0]); if (ret == AVERROR_EOF && s->n) { ret = ff_filter_frame(link, get_best_frame(ctx)); @@ -184,7 +182,6 @@ static int request_frame(AVFilterLink *link) } if (ret < 0) return ret; - } while (s->n); return 0; } |