summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorKarthick Jeyapal <kjeyapal@akamai.com>2017-12-25 12:07:43 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-12-25 12:07:43 +0800
commit6848201f704b5e8e1ebdc911dba94ebc1e52c6b0 (patch)
tree1fc7f335284db27111701305bc02e5857426c095 /libavformat
parent90d216cb90398ffb92e9e8361656ad619a985b64 (diff)
avformat/http: Avoid calling http_shutdown() if end of chunk is signalled already
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/http.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 7a68378acb..c15ca522c4 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -323,9 +323,11 @@ int ff_http_do_new_request(URLContext *h, const char *uri)
return AVERROR(EINVAL);
}
- ret = http_shutdown(h, h->flags);
- if (ret < 0)
- return ret;
+ if (!s->end_chunked_post) {
+ ret = http_shutdown(h, h->flags);
+ if (ret < 0)
+ return ret;
+ }
if (s->willclose)
return AVERROR_EOF;