# HG changeset patch # User reimar # Date 1243799481 0 # Node ID 21f3bbb20e423734605d90cb24aa71503b9623b1 # Parent 66922728d7f754e8d4327973b531e7b48ab34668 add #if CONFIG_ZLIB_DECODER around zlib_decomp function. Fixes compilation when zlib is not available. diff -r 66922728d7f7 -r 21f3bbb20e42 lcldec.c --- 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 /*