X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhttp.c;h=668cd51986680c5e03ee3d4f7feadd87327efd5a;hb=752bc6b402ae3a20a7e01e6bdde483b081dffc81;hp=d06103ab6d8a8f555d5726026cc301ab4e595d43;hpb=18e2a446c52b0a5cb520f9b68d8fd4171a5f6471;p=ffmpeg diff --git a/libavformat/http.c b/libavformat/http.c index d06103ab6d8..668cd519866 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1248,6 +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 @@ -1326,7 +1329,7 @@ static int http_buf_read(URLContext *h, uint8_t *buf, int size) } if (len > 0) { s->off += len; - if (s->chunksize > 0) { + if (s->chunksize > 0 && s->chunksize != UINT64_MAX) { av_assert0(s->chunksize >= len); s->chunksize -= len; }