Mercurial > libavcodec.hg
diff lcldec.c @ 9783:21f3bbb20e42 libavcodec
add #if CONFIG_ZLIB_DECODER around zlib_decomp function.
Fixes compilation when zlib is not available.
author | reimar |
---|---|
date | Sun, 31 May 2009 19:51:21 +0000 |
parents | 66922728d7f7 |
children | d7ed9dcc78e3 |
line wrap: on
line diff
--- a/lcldec.c Sun May 31 18:17:33 2009 +0000 +++ b/lcldec.c Sun May 31 19:51:21 2009 +0000 @@ -124,6 +124,7 @@ * \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 @@ } return c->zstream.total_out; } +#endif /*