summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-09-15 15:09:54 +0200
committerClément Bœsch <cboesch@gopro.com>2017-09-15 15:10:49 +0200
commit6743351558001764d662bb52b9a3e0bbb63366d6 (patch)
tree64a0ba193b3b2cb28d24b48173cd2a0b6397a632 /libavformat/http.c
parent1a08285f05c9b9cc8941bd5bb59400fdceb5bafa (diff)
downloadffmpeg-6743351558001764d662bb52b9a3e0bbb63366d6.tar.gz
lavf/http: fix compilation without zlib
Regression since e2f8f14052d99d7710cda0a821e236765b315d0b.
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index f25977ab1f..668cd51986 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1248,7 +1248,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