]> git.sesse.net Git - ffmpeg/commitdiff
lavf/http: Fix incorrectly placed parenthesis.
authorStephan Holljes <klaxa1337@googlemail.com>
Thu, 3 Sep 2015 13:55:10 +0000 (15:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Sep 2015 16:55:49 +0000 (18:55 +0200)
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>
libavformat/http.c

index d3c0b7e659dd1921c1995822fb8661a9f8f5eea6..c148a29ea71611bb23bc84a4c88e18da2a91ac9e 100644 (file)
@@ -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;