From ce0a7536340518b20131c377788866e3030dfc6d Mon Sep 17 00:00:00 2001 From: "kjeyapal@akamai.com" Date: Fri, 16 Nov 2018 14:27:12 +0530 Subject: [PATCH] avformat/http : Added check for valid URL context before calling shutdown --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 3a35bc7eacb..240304f6e65 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1650,7 +1650,7 @@ static int http_close(URLContext *h) av_freep(&s->inflate_buffer); #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. */ ret = http_shutdown(h, h->flags); -- 2.39.2