changeset 71:a803af1b10be libavformat

* compile PNG only when ZLIB is available
author kabi
date Thu, 27 Feb 2003 17:32:56 +0000
parents e851fa232508
children cd7bf47d4964
files allformats.c avformat.h png.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
--- 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;
 
--- 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 <zlib.h>
 
 //#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