提交 eb564b23 编写于 作者: M Martin Storsjö

http: Fail reading if the connection has gone away

This can happen if doing a new request using the same socket,
but the new request failed, which clears the urlcontext.
Signed-off-by: NMartin Storsjö <martin@martin.st>
上级 eb3918c1
......@@ -510,6 +510,9 @@ static int http_read(URLContext *h, uint8_t *buf, int size)
HTTPContext *s = h->priv_data;
int err, new_location;
if (!s->hd)
return AVERROR_EOF;
if (s->end_chunked_post) {
if (!s->end_header) {
err = http_read_header(h, &new_location);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册