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>
This commit is contained in:
Stephan Holljes 2015-09-03 15:55:10 +02:00 committed by Michael Niedermayer
parent 92b3c486b0
commit dd7b486e8e
1 changed files with 1 additions and 1 deletions

View 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;