1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Stephan Holljes 2015-04-06 19:26:34 +02:00 committed by Michael Niedermayer
parent eca39e29a3
commit 6d8c27f951

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