You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/http: Avoid calling http_shutdown() if end of chunk is signalled already
This commit is contained in:
committed by
Steven Liu
parent
90d216cb90
commit
6848201f70
@@ -323,9 +323,11 @@ int ff_http_do_new_request(URLContext *h, const char *uri)
|
|||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = http_shutdown(h, h->flags);
|
if (!s->end_chunked_post) {
|
||||||
if (ret < 0)
|
ret = http_shutdown(h, h->flags);
|
||||||
return ret;
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
if (s->willclose)
|
if (s->willclose)
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
|
Reference in New Issue
Block a user