libavformat/http.c: Fix missing parenthesis in http_listen()
authorStephan Holljes <klaxa1337@googlemail.com>
Mon, 6 Apr 2015 17:26:34 +0000 (19:26 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Apr 2015 20:17:58 +0000 (22:17 +0200)
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/http.c

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