Commit e0a35088 authored by reimar's avatar reimar

add #if CONFIG_ZLIB_DECODER around zlib_decomp function.

Fixes compilation when zlib is not available.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19069 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 84dc016f
......@@ -124,6 +124,7 @@ static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsign
* \param offset offset in decomp_buf
* \param expected expected decompressed length
*/
#if CONFIG_ZLIB_DECODER
static int zlib_decomp(AVCodecContext *avctx, const uint8_t *src, int src_len, int offset, int expected)
{
LclDecContext *c = avctx->priv_data;
......@@ -148,6 +149,7 @@ static int zlib_decomp(AVCodecContext *avctx, const uint8_t *src, int src_len, i
}
return c->zstream.total_out;
}
#endif
/*
......
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