[FFmpeg-devel] [PATCH 2/2] avformat/http : Added check for valid URL context before calling shutdown
Karthick J
kjeyapal at akamai.com
Fri Nov 16 10:57:12 EET 2018
---
libavformat/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/http.c b/libavformat/http.c
index 3a35bc7eac..240304f6e6 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.17.1 (Apple Git-112)
More information about the ffmpeg-devel
mailing list