[FFmpeg-devel] [PATCH 14/15] lavfi/vf_thumbnail: reindent after last commit.
Nicolas George
george at nsup.org
Fri Oct 2 17:13:25 CEST 2015
Signed-off-by: Nicolas George <george at nsup.org>
---
libavfilter/vf_thumbnail.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c
index 64cedd4..417ccd5 100644
--- a/libavfilter/vf_thumbnail.c
+++ b/libavfilter/vf_thumbnail.c
@@ -171,17 +171,16 @@ static int request_frame(AVFilterLink *link)
{
AVFilterContext *ctx = link->src;
ThumbContext *s = ctx->priv;
+ int ret = ff_request_frame(ctx->inputs[0]);
- /* 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));
- if (ret < 0)
- return ret;
- ret = AVERROR_EOF;
- }
+ if (ret == AVERROR_EOF && s->n) {
+ ret = ff_filter_frame(link, get_best_frame(ctx));
if (ret < 0)
return ret;
+ ret = AVERROR_EOF;
+ }
+ if (ret < 0)
+ return ret;
return 0;
}
--
2.5.3
More information about the ffmpeg-devel
mailing list