[FFmpeg-cvslog] lavf/http: fix compilation without zlib

Clément Bœsch git at videolan.org
Fri Sep 15 16:09:01 EEST 2017


ffmpeg | branch: master | Clément Bœsch <cboesch at gopro.com> | Fri Sep 15 15:09:54 2017 +0200| [6743351558001764d662bb52b9a3e0bbb63366d6] | committer: Clément Bœsch

lavf/http: fix compilation without zlib

Regression since e2f8f14052d99d7710cda0a821e236765b315d0b.

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

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

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



More information about the ffmpeg-cvslog mailing list