1 --- iv-2.6.1/iv/imgio_png.c.orig 2009-07-27 02:00:00.000000000 +0200
2 +++ iv-2.6.1/iv/imgio_png.c 2014-02-02 15:50:22.418709431 +0100
11 /* png.h and setjmp.h may not be combined */
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 */