# HG changeset patch # User kabi # Date 1046367176 0 # Node ID a803af1b10be9c1083c081d825bcc380e95f207a # Parent e851fa232508e167927f025700bda4f9d85b3011 * compile PNG only when ZLIB is available diff -r e851fa232508 -r a803af1b10be allformats.c --- a/allformats.c Wed Feb 26 17:26:20 2003 +0000 +++ b/allformats.c Thu Feb 27 17:32:56 2003 +0000 @@ -75,7 +75,9 @@ av_register_image_format(&ppm_image_format); av_register_image_format(&pgmyuv_image_format); av_register_image_format(&yuv_image_format); +#ifdef CONFIG_ZLIB av_register_image_format(&png_image_format); +#endif av_register_image_format(&jpeg_image_format); av_register_image_format(&gif_image_format); diff -r e851fa232508 -r a803af1b10be avformat.h --- a/avformat.h Wed Feb 26 17:26:20 2003 +0000 +++ b/avformat.h Thu Feb 27 17:32:56 2003 +0000 @@ -253,7 +253,9 @@ extern AVImageFormat ppm_image_format; extern AVImageFormat pgmyuv_image_format; extern AVImageFormat yuv_image_format; +#ifdef CONFIG_ZLIB extern AVImageFormat png_image_format; +#endif extern AVImageFormat jpeg_image_format; extern AVImageFormat gif_image_format; diff -r e851fa232508 -r a803af1b10be png.c --- a/png.c Wed Feb 26 17:26:20 2003 +0000 +++ b/png.c Thu Feb 27 17:32:56 2003 +0000 @@ -18,6 +18,7 @@ */ #include "avformat.h" +#ifdef CONFIG_ZLIB #include //#define DEBUG @@ -563,3 +564,4 @@ (1 << PIX_FMT_RGB24) | (1 << PIX_FMT_GRAY8) | (1 << PIX_FMT_MONOBLACK) | (1 << PIX_FMT_PAL8), png_write, }; +#endif