Commit 1e81b185 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '7ccb847f'

* commit '7ccb847f':
  http: Reduce scope of a variable in parse_content_encoding()
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d3a22491 7ccb847f
......@@ -390,11 +390,11 @@ static void parse_content_range(URLContext *h, const char *p)
static int parse_content_encoding(URLContext *h, const char *p)
{
HTTPContext *s = h->priv_data;
if (!av_strncasecmp(p, "gzip", 4) ||
!av_strncasecmp(p, "deflate", 7)) {
#if CONFIG_ZLIB
HTTPContext *s = h->priv_data;
s->compressed = 1;
inflateEnd(&s->inflate_stream);
if (inflateInit2(&s->inflate_stream, 32 + 15) != Z_OK) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment