[FFmpeg-cvslog] avformat/http : Added check for valid URL context before calling shutdown

kjeyapal@akamai.com git at videolan.org
Thu Nov 22 08:36:50 EET 2018


ffmpeg | branch: master | kjeyapal at akamai.com <kjeyapal at akamai.com> | Fri Nov 16 14:45:12 2018 +0530| [ce0a7536340518b20131c377788866e3030dfc6d] | committer: Karthick J

avformat/http : Added check for valid URL context before calling shutdown

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ce0a7536340518b20131c377788866e3030dfc6d
---

 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);
 



More information about the ffmpeg-cvslog mailing list