diff tiff.c @ 10299:a1654cd1b5b9 libavcodec

Do not compile ZLib data uncompressing function in TIFF decoder when ZLib is not present. Patch by Martin Storsj ($firstname <at> $firstname <dot> two first letters of $lastname)
author kostya
date Sun, 27 Sep 2009 09:43:11 +0000
parents a919d9583abd
children 8a49525f2b1e
line wrap: on
line diff
--- a/tiff.c	Sun Sep 27 08:16:50 2009 +0000
+++ b/tiff.c	Sun Sep 27 09:43:11 2009 +0000
@@ -75,6 +75,7 @@
     }
 }
 
+#if CONFIG_ZLIB
 static int tiff_uncompress(uint8_t *dst, unsigned long *len, const uint8_t *src, int size)
 {
     z_stream zstream;
@@ -95,6 +96,7 @@
     *len = zstream.total_out;
     return zret == Z_STREAM_END ? Z_OK : zret;
 }
+#endif
 
 static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uint8_t *src, int size, int lines){
     int c, line, pixels, code;