changeset 11646:beeafc00201e

remove zlib dependency
author faust3
date Mon, 15 Dec 2003 11:07:48 +0000
parents 3837fd1bfa5b
children f9fccf97d588
files libmpcodecs/vd_lcl.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_lcl.c	Mon Dec 15 04:07:17 2003 +0000
+++ b/libmpcodecs/vd_lcl.c	Mon Dec 15 11:07:48 2003 +0000
@@ -208,6 +208,7 @@
       }
       break;
     case CODEC_ZLIB:
+#ifdef HAVE_ZLIB
       switch (hc->compression) {
         case COMP_ZLIB_HISPEED:
           mp_msg(MSGT_DECVIDEO, MSGL_INFO, "[LCL] High speed compression.\n");
@@ -225,6 +226,10 @@
 	  }
           mp_msg(MSGT_DECVIDEO, MSGL_INFO, "[LCL] Compression level for ZLIB: (%d).\n", hc->compression);
       }
+#else
+      mp_msg(MSGT_DECVIDEO, MSGL_ERR, "[LCL] Zlib support not compiled.\n");
+      return 0;
+#endif
       break;
     default:
       mp_msg(MSGT_DECVIDEO, MSGL_ERR, "[LCL] BUG! Unknown codec in compression switch.\n");