OSDN Git Service

save_png: don't append an additional info block
authorMartin Renold <martinxyz@gmx.ch>
Sat, 19 Nov 2011 17:51:01 +0000 (18:51 +0100)
committerMartin Renold <martinxyz@gmx.ch>
Sat, 19 Nov 2011 17:55:46 +0000 (18:55 +0100)
Bugfix, but I doubt that anyone would ever have noticed.

lib/fastpng.hpp

index 019b63d..59a12c6 100644 (file)
@@ -111,7 +111,7 @@ PyObject * save_png_fast_progressive(char * filename, int w, int h, bool has_alp
     assert(y == h);
   }
   
-  png_write_end (png_ptr, info_ptr);
+  png_write_end (png_ptr, NULL);
 
   Py_INCREF(Py_None);
   result = Py_None;