summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorStephan Holljes <klaxa1337@googlemail.com>2015-06-04 01:21:26 +0200
committerNicolas George <george@nsup.org>2015-06-06 09:24:50 +0200
commit290b23755673eaa8a6f32025734e8f9916e75f6f (patch)
treecdd94c3283c7035ebef7e555da37e2c2ad814a85 /libavformat/http.c
parenta7e7c68b0e264f5db15bbbf9fb3cd557cc58e927 (diff)
lavf/http: Indent else-clause.
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 53bdb985f0..1bf9166c27 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 != ':')