Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Holljes <klaxa1337@googlemail.com>2015-04-06 20:26:34 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-06 23:17:58 +0300
commit6d8c27f9512a207233c123ff401408a006c432d9 (patch)
tree21fa7fd459c9f083cb7d986e9532e7035ae4db9c /libavformat/http.c
parenteca39e29a3af7b2a828636dedc2f8a6759756631 (diff)
libavformat/http.c: Fix missing parenthesis in http_listen()
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 8821728a98..81152727b9 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;