aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_thumbnail.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2015-10-02 16:19:55 +0200
committerNicolas George <george@nsup.org>2015-10-07 19:05:13 +0200
commit73a5546ba8e211dd23339be285f1786c0001b25c (patch)
treef93ff391a4ec1600236411b36e9e6e675a4ce267 /libavfilter/vf_thumbnail.c
parentca540fbdb448950b2cc2be82bd1b75cee1bc94f3 (diff)
downloadffmpeg-73a5546ba8e211dd23339be285f1786c0001b25c.tar.gz
lavfi/vf_thumbnail: remove looping on request_frame().
Diffstat (limited to 'libavfilter/vf_thumbnail.c')
-rw-r--r--libavfilter/vf_thumbnail.c5
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;
}