]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/vf_thumbnail: reindent after last commit.
authorNicolas George <george@nsup.org>
Fri, 2 Oct 2015 14:20:17 +0000 (16:20 +0200)
committerNicolas George <george@nsup.org>
Wed, 7 Oct 2015 17:05:13 +0000 (19:05 +0200)
libavfilter/vf_thumbnail.c

index 64cedd449f872bbeafafef59e91c089b81eb57a2..417ccd56d0947e8c4351cd4db98a675c3da4a315 100644 (file)
@@ -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;
 }