From 6743351558001764d662bb52b9a3e0bbb63366d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Fri, 15 Sep 2017 15:09:54 +0200 Subject: lavf/http: fix compilation without zlib Regression since e2f8f14052d99d7710cda0a821e236765b315d0b. --- libavformat/http.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/http.c') 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 -- cgit v1.2.1