[FFmpeg-cvslog] libavformat/http.c: Fix missing parenthesis in http_listen()

Stephan Holljes git at videolan.org
Mon Apr 6 22:24:20 CEST 2015


ffmpeg | branch: master | Stephan Holljes <klaxa1337 at googlemail.com> | Mon Apr  6 19:26:34 2015 +0200| [6d8c27f9512a207233c123ff401408a006c432d9] | committer: Michael Niedermayer

libavformat/http.c: Fix missing parenthesis in http_listen()

Signed-off-by: Stephan Holljes <klaxa1337 at googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/http.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 8821728..8115272 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -311,10 +311,10 @@ static int http_listen(URLContext *h, const char *uri, int flags,
     ff_url_join(lower_url, sizeof(lower_url), "tcp", NULL, hostname, port,
                 NULL);
     av_dict_set(options, "listen", "1", 0);
-    if (ret = ffurl_open(&s->hd, lower_url, AVIO_FLAG_READ_WRITE,
-                         &h->interrupt_callback, options) < 0)
+    if ((ret = ffurl_open(&s->hd, lower_url, AVIO_FLAG_READ_WRITE,
+                          &h->interrupt_callback, options)) < 0)
         goto fail;
-    if (ret = ffurl_write(s->hd, header, strlen(header)) < 0)
+    if ((ret = ffurl_write(s->hd, header, strlen(header))) < 0)
         goto fail;
     return 0;
 



More information about the ffmpeg-cvslog mailing list