mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-18 07:15:04 +02:00
lavfi/vf_thumbnail: remove looping on request_frame().
This commit is contained in:
parent
ca540fbdb4
commit
73a5546ba8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user