* compile PNG only when ZLIB is available
[ffmpeg.git] / libavformat / allformats.c
index 6303dc2b18b8f37f0ad2693002cae97afb4f59d4..cd80136c64268364b93b36bf1d293944a60bcc44 100644 (file)
@@ -75,7 +75,9 @@ void av_register_all(void)
     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);