[FFmpeg-devel] [PATCH 08/15] lavfi/vf_thumbnail: remove looping on request_frame().
Nicolas George
george at nsup.org
Fri Oct 2 17:13:19 CEST 2015
Signed-off-by: Nicolas George <george at nsup.org>
---
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;
}
--
2.5.3
More information about the ffmpeg-devel
mailing list