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>
pull/149/head
Stephan Holljes 9 years ago committed by Michael Niedermayer
parent 92b3c486b0
commit dd7b486e8e
  1. 2
      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;

Loading…
Cancel
Save