[FFmpeg-cvslog] lavf/http: Reset compressed header flag, fix http 302 request

Jacek Jendrzej git at videolan.org
Fri Sep 15 14:37:32 EEST 2017


ffmpeg | branch: master | Jacek Jendrzej <satbaby at kawaii.com> | Thu Jul 20 13:46:46 2017 +0200| [e2f8f14052d99d7710cda0a821e236765b315d0b] | committer: Carl Eugen Hoyos

lavf/http: Reset compressed header flag, fix http 302 request

Fixes ticket #6404.
Fixes ticket #6666.

Signed-off-by: Jacek Jendrzej <satbaby at kawaii.com>

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

 libavformat/http.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index 30890bb7aa..f25977ab1f 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1248,6 +1248,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
     s->willclose        = 0;
     s->end_chunked_post = 0;
     s->end_header       = 0;
+    s->compressed       = 0;
     if (post && !s->post_data && !send_expect_100) {
         /* Pretend that it did work. We didn't read any header yet, since
          * we've still to send the POST data, but the code calling this



More information about the ffmpeg-cvslog mailing list