changeset 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 2142607ddc2e
files lcldec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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
 
 
 /*