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

index c32c06592a60b3e9dd51bb8c70db7b7c195e3c4e..b546a088c9affaaa8940d83dd36f5803a20fcfe2 100644 (file)
@@ -386,26 +386,24 @@ static int request_frame(AVFilterLink *link)
         return 0;
     }
 
+    if (yadif->eof)
+        return AVERROR_EOF;
 
-    /* TODO reindent */
-        if (yadif->eof)
-            return AVERROR_EOF;
+    ret  = ff_request_frame(link->src->inputs[0]);
 
-        ret  = ff_request_frame(link->src->inputs[0]);
+    if (ret == AVERROR_EOF && yadif->cur) {
+        AVFrame *next = av_frame_clone(yadif->next);
 
-        if (ret == AVERROR_EOF && yadif->cur) {
-            AVFrame *next = av_frame_clone(yadif->next);
-
-            if (!next)
-                return AVERROR(ENOMEM);
+        if (!next)
+            return AVERROR(ENOMEM);
 
-            next->pts = yadif->next->pts * 2 - yadif->cur->pts;
+        next->pts = yadif->next->pts * 2 - yadif->cur->pts;
 
-            filter_frame(link->src->inputs[0], next);
-            yadif->eof = 1;
-        } else if (ret < 0) {
-            return ret;
-        }
+        filter_frame(link->src->inputs[0], next);
+        yadif->eof = 1;
+    } else if (ret < 0) {
+        return ret;
+    }
 
     return 0;
 }