Commit 6848201f authored by Karthick Jeyapal's avatar Karthick Jeyapal Committed by Steven Liu

avformat/http: Avoid calling http_shutdown() if end of chunk is signalled already

parent 90d216cb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment