blob: 59d7537f2734bc8333ff6b48b4947fa51e82d7ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- image/png.c.orig 2001-04-11 10:37:00.000000000 +0200
+++ image/png.c 2012-05-05 08:48:02.000000000 +0200
@@ -86,7 +86,7 @@
return NULL;
}
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
fclose(fp);
return NULL;
@@ -134,7 +134,7 @@
}
if (colortype == PNG_COLOR_TYPE_GRAY && bitdepth < 8){
- png_set_gray_1_2_4_to_8(png_ptr);
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
}
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)){
|