[FFmpeg-cvslog] lavf/http: Fix incorrectly placed parenthesis.

Stephan Holljes git at videolan.org
Thu Sep 3 19:24:23 CEST 2015


ffmpeg | branch: master | Stephan Holljes <klaxa1337 at googlemail.com> | Thu Sep  3 15:55:10 2015 +0200| [dd7b486e8e5bc12777d19c7932fa2a830db5a826] | committer: Michael Niedermayer

lavf/http: Fix incorrectly placed parenthesis.

The assignment had incorrectly placed parentheses which resulted in ret
always being > 0.

Reviewed-by: wm4 <nfxjfg at googlemail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd7b486e8e5bc12777d19c7932fa2a830db5a826
---

 libavformat/http.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index d3c0b7e..c148a29 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;



More information about the ffmpeg-cvslog mailing list