From 24dd21fa4179c31385d1815cb824f66b5038b20c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de>
Date: Sun, 31 May 2009 19:51:21 +0000
Subject: [PATCH] add #if CONFIG_ZLIB_DECODER around zlib_decomp function.
 Fixes compilation when zlib is not available.

Originally committed as revision 19069 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/lcldec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index a6e348bd8e1..15c686e0a97 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -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
 
 
 /*
-- 
GitLab