aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJacek Jendrzej <satbaby@kawaii.com>2017-07-20 13:46:46 +0200
committerMartin Storsjö <martin@martin.st>2017-09-26 13:36:21 +0300
commit9b1c0911146c0d7b4ede57ccfff6eac5b5304091 (patch)
treead539f74b390cc9427f131ad44de9f6792db47f0 /libavformat
parent9ed18f302b09e444f5b1be01979cce62c4b2c04a (diff)
downloadffmpeg-9b1c0911146c0d7b4ede57ccfff6eac5b5304091.tar.gz
http: Reset compressed header flag when starting to read a request
This fixes redirects, where the original redirect response indicated support for compression, while the actual redirected content didn't. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 00cf295001..80c87f786a 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -682,6 +682,9 @@ 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;
+#if CONFIG_ZLIB
+ s->compressed = 0;
+#endif
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