[FFmpeg-devel] [PATCH 3/5] lavfi/vf_idet: reindent after last commit.

Nicolas George george at nsup.org
Wed Aug 26 13:19:35 CEST 2015


Signed-off-by: Nicolas George <george at nsup.org>
---
 libavfilter/vf_idet.c | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 113e8ec..b6411a4 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -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;
 }
-- 
2.5.0



More information about the ffmpeg-devel mailing list