initialize the SortFlag for colour maps for giflib 5.x
authorTony Cook <tony@develop-help.com>
Mon, 15 Oct 2012 08:39:36 +0000 (19:39 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 15 Oct 2012 08:39:36 +0000 (19:39 +1100)
GIF/imgif.c

index a0c31b7..8dfe834 100644 (file)
@@ -1210,6 +1210,9 @@ make_gif_map(i_quantize *quant, i_img *img, int want_trans) {
     i_push_error(0, "Could not create color map object");
     return NULL;
   }
+#if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5
+  map->SortFlag = 0;
+#endif
   return map;
 }