mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-05 18:01:59 +02:00
avformat/http : Added check for valid URL context before calling shutdown
This commit is contained in:
parent
4903662a1d
commit
ce0a753634
@ -1650,7 +1650,7 @@ static int http_close(URLContext *h)
|
|||||||
av_freep(&s->inflate_buffer);
|
av_freep(&s->inflate_buffer);
|
||||||
#endif /* CONFIG_ZLIB */
|
#endif /* CONFIG_ZLIB */
|
||||||
|
|
||||||
if (!s->end_chunked_post)
|
if (s->hd && !s->end_chunked_post)
|
||||||
/* Close the write direction by sending the end of chunked encoding. */
|
/* Close the write direction by sending the end of chunked encoding. */
|
||||||
ret = http_shutdown(h, h->flags);
|
ret = http_shutdown(h, h->flags);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user