OSDN Git Service

Do not compile ZLib data uncompressing function in TIFF decoder when ZLib is
authorMartin Storsjö <martin@martin.st>
Sun, 27 Sep 2009 09:43:11 +0000 (09:43 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 27 Sep 2009 09:43:11 +0000 (09:43 +0000)
not present.
Patch by Martin Storsjö
($firstname <at> $firstname <dot> two first letters of $lastname)

Originally committed as revision 20058 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/tiff.c

index 263f287..c4f4523 100644 (file)
@@ -75,6 +75,7 @@ static int tget(const uint8_t **p, int type, int le){
     }
 }
 
+#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 @@ static int tiff_uncompress(uint8_t *dst, unsigned long *len, const uint8_t *src,
     *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;