1 --- endeavour-3.1.4/endeavour2/imgio_png.c.orig 2009-09-12 09:00:00.000000000 +0200
2 +++ endeavour-3.1.4/endeavour2/imgio_png.c 2014-02-05 17:55:19.894183865 +0100
10 #include <sys/types.h>
14 /* Get the PNG color type */
15 ctx->png_color_type = color_type = ((png_info_ptr != NULL) ?
16 - png_info_ptr->color_type : PNG_COLOR_TYPE_GRAY
17 + png_get_color_type(png_ptr, png_info_ptr) : PNG_COLOR_TYPE_GRAY
20 /* Get the PNG bit depth */
21 - ctx->png_bit_depth = bit_depth = (png_info_ptr != NULL) ? png_info_ptr->bit_depth : 1;
22 + ctx->png_bit_depth = bit_depth = (png_info_ptr != NULL) ? png_get_bit_depth(png_ptr, png_info_ptr) : 1;
25 /* Insert transformations here */