aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJeyapal, Karthick <kjeyapal@akamai.com>2017-11-29 14:32:16 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-11-29 14:32:16 +0800
commit4ddf7476c009643e719993cb27411aeca6bf78e4 (patch)
tree424ea8b1687ed6c9ab460792a4616d93e34975ca /libavformat
parent62f63b24bfec22134bc5b9312bc6afe824e63199 (diff)
downloadffmpeg-4ddf7476c009643e719993cb27411aeca6bf78e4.tar.gz
libavformat/http: Handled multiple_requests option during write
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/http.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 056d5f6583..cf86adc617 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -171,6 +171,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
const char *hoststr, const char *auth,
const char *proxyauth, int *new_location);
static int http_read_header(URLContext *h, int *new_location);
+static int http_shutdown(URLContext *h, int flags);
void ff_http_init_auth_state(URLContext *dest, const URLContext *src)
{
@@ -306,6 +307,11 @@ int ff_http_do_new_request(URLContext *h, const char *uri)
AVDictionary *options = NULL;
int ret;
+ ret = http_shutdown(h, h->flags);
+ if (ret < 0)
+ return ret;
+
+ s->end_chunked_post = 0;
s->chunkend = 0;
s->off = 0;
s->icy_data_read = 0;