]> mj.ucw.cz Git - libucw.git/blobdiff - images/io-main.c
added support for libungif
[libucw.git] / images / io-main.c
index 65f61782c3665b548d6976e891649c698f3aede0..ef18e6606b2457865c2a1986f46a6e46cb737f6c 100644 (file)
@@ -88,7 +88,7 @@ image_io_read_header(struct image_io *io)
       break;
 
     case IMAGE_FORMAT_GIF:
-#if defined(CONFIG_LIBUNGIG)
+#if defined(CONFIG_LIBUNGIF)
       return libungif_read_header(io);
 #elif defined(CONFIG_LIBMAGICK)
       return libmagick_read_header(io);
@@ -136,6 +136,8 @@ image_io_read_data(struct image_io *io, int ref)
 
     case IMAGE_FORMAT_GIF:
 #if defined(CONFIG_LIBMAGICK)
+      result = libungif_read_data(io);
+#elif defined(CONFIG_LIBMAGICK)
       result = libmagick_read_data(io);
 #else
       ASSERT(0);