lavfi/vf_idet: reindent after last commit.
authorNicolas George <george@nsup.org>
Wed, 26 Aug 2015 10:21:27 +0000 (12:21 +0200)
committerNicolas George <george@nsup.org>
Sun, 20 Sep 2015 16:50:00 +0000 (18:50 +0200)
libavfilter/vf_idet.c

index d460330..21011cf 100644 (file)
@@ -313,24 +313,22 @@ static int request_frame(AVFilterLink *link)
 {
     AVFilterContext *ctx = link->src;
     IDETContext *idet = ctx->priv;
+    int ret;
 
-    // TODO reindent
-        int ret;
+    if (idet->eof)
+        return AVERROR_EOF;
 
-        if (idet->eof)
-            return AVERROR_EOF;
+    ret = ff_request_frame(link->src->inputs[0]);
 
-        ret = ff_request_frame(link->src->inputs[0]);
+    if (ret == AVERROR_EOF && idet->cur && !idet->analyze_interlaced_flag_done) {
+        AVFrame *next = av_frame_clone(idet->next);
 
-        if (ret == AVERROR_EOF && idet->cur && !idet->analyze_interlaced_flag_done) {
-            AVFrame *next = av_frame_clone(idet->next);
+        if (!next)
+            return AVERROR(ENOMEM);
 
-            if (!next)
-                return AVERROR(ENOMEM);
-
-            ret = filter_frame(link->src->inputs[0], next);
-            idet->eof = 1;
-        }
+        ret = filter_frame(link->src->inputs[0], next);
+        idet->eof = 1;
+    }
 
     return ret;
 }