Commit 73a5546b authored by Nicolas George's avatar Nicolas George

lavfi/vf_thumbnail: remove looping on request_frame().

parent ca540fbd
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment