]> git.pld-linux.org Git - packages/iv.git/blob - iv-libpng.patch
- updated to 2.6.1
[packages/iv.git] / iv-libpng.patch
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
3 @@ -2,6 +2,8 @@
4  #include <stdio.h>
5  #include <stdlib.h>
6  #include <errno.h>
7 +#include <string.h>
8 +#include <strings.h>
9  #include <sys/types.h>
10  #include <sys/stat.h>
11  /* png.h and setjmp.h may not be combined */
12 @@ -651,11 +653,11 @@
13  
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
18         );
19  
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;
23  
24  
25         /* Insert transformations here */
This page took 0.257261 seconds and 3 git commands to generate.