[FFmpeg-cvslog] lavfi/vf_thumbnail: remove looping on request_frame().
Nicolas George
git at videolan.org
Wed Oct 7 19:08:35 CEST 2015
ffmpeg | branch: master | Nicolas George <george at nsup.org> | Fri Oct 2 16:19:55 2015 +0200| [73a5546ba8e211dd23339be285f1786c0001b25c] | committer: Nicolas George
lavfi/vf_thumbnail: remove looping on request_frame().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=73a5546ba8e211dd23339be285f1786c0001b25c
---
libavfilter/vf_thumbnail.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c
index c378791..64cedd4 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;
}
More information about the ffmpeg-cvslog
mailing list