Browse Source

lavfi/vf_thumbnail: remove looping on request_frame().

tags/n3.0
Nicolas George 9 years ago
parent
commit
73a5546ba8
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      libavfilter/vf_thumbnail.c

+ 1
- 4
libavfilter/vf_thumbnail.c View File

@@ -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…
Cancel
Save