aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorStephan Holljes <klaxa1337@googlemail.com>2015-09-03 15:55:10 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-03 18:55:49 +0200
commitdd7b486e8e5bc12777d19c7932fa2a830db5a826 (patch)
tree13051e1582c33f1de00ba79980447ba614ee051d /libavformat
parent92b3c486b0e7f9c91bcf827852d5b13017674ca1 (diff)
downloadffmpeg-dd7b486e8e5bc12777d19c7932fa2a830db5a826.tar.gz
lavf/http: Fix incorrectly placed parenthesis.
The assignment had incorrectly placed parentheses which resulted in ret always being > 0. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index d3c0b7e659..c148a29ea7 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -399,7 +399,7 @@ static int http_handshake(URLContext *c)
switch (ch->handshake_step) {
case LOWER_PROTO:
av_log(c, AV_LOG_TRACE, "Lower protocol\n");
- if ((ret = ffurl_handshake(cl) > 0))
+ if ((ret = ffurl_handshake(cl)) > 0)
return 2 + ret;
if ((ret < 0))
return ret;