[FFmpeg-cvslog] lavf/http: Indent else-clause.

Stephan Holljes git at videolan.org
Sat Jun 6 12:51:42 CEST 2015


ffmpeg | branch: master | Stephan Holljes <klaxa1337 at googlemail.com> | Thu Jun  4 01:21:26 2015 +0200| [290b23755673eaa8a6f32025734e8f9916e75f6f] | committer: Nicolas George

lavf/http: Indent else-clause.

Signed-off-by: Stephan Holljes <klaxa1337 at googlemail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=290b23755673eaa8a6f32025734e8f9916e75f6f
---

 libavformat/http.c |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 53bdb98..1bf9166 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -611,17 +611,16 @@ static int process_line(URLContext *h, char *line, int line_count,
             }
             av_log(h, AV_LOG_TRACE, "HTTP version string: %s\n", version);
         } else {
-        /* TODO: reindent */
-        while (!av_isspace(*p) && *p != '\0')
-            p++;
-        while (av_isspace(*p))
-            p++;
-        s->http_code = strtol(p, &end, 10);
+            while (!av_isspace(*p) && *p != '\0')
+                p++;
+            while (av_isspace(*p))
+                p++;
+            s->http_code = strtol(p, &end, 10);
 
-        av_log(h, AV_LOG_TRACE, "http_code=%d\n", s->http_code);
+            av_log(h, AV_LOG_TRACE, "http_code=%d\n", s->http_code);
 
-        if ((ret = check_http_code(h, s->http_code, end)) < 0)
-            return ret;
+            if ((ret = check_http_code(h, s->http_code, end)) < 0)
+                return ret;
         }
     } else {
         while (*p != '\0' && *p != ':')



More information about the ffmpeg-cvslog mailing list