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-06-04 02:17:51 +0300
committerNicolas George <george@nsup.org>2015-06-06 10:13:42 +0300
commitbbcee92b6d59adca054351c6e9e56bcb77ebda11 (patch)
treee044878bdffe66876442e9fc483656836c91b074 /libavformat/http.c
parentaa74401af8a40862c8e148222481921f8013f6ed (diff)
lavf/http: Process HTTP header before sending response.
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 546741ad47..e51f524560 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -318,10 +318,10 @@ static int http_listen(URLContext *h, const char *uri, int flags,
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)
- goto fail;
if ((ret = http_read_header(h, &new_location)) < 0)
goto fail;
+ if ((ret = ffurl_write(s->hd, header, strlen(header))) < 0)
+ goto fail;
return 0;
fail: