summaryrefslogtreecommitdiffstats
path: root/vlc/build/libkate_png14.patch
blob: f45a3e25904a06e1e86ac8b39732ea14a60b6bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- tools/kpng.c.old	2010-02-06 03:57:36.000000000 -0200
+++ tools/kpng.c	2010-02-06 03:57:55.000000000 -0200
@@ -179,13 +179,13 @@
     }
   }
 
-  png_destroy_read_struct(&png_ptr,&info_ptr,png_infopp_NULL);
+  png_destroy_read_struct(&png_ptr,&info_ptr,NULL);
   fclose(f);
 
   return 0;
 
 error:
-  if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:png_infopp_NULL,png_infopp_NULL);
+  if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:NULL,NULL);
   if (f) fclose(f);
   return -1;
 }
@@ -224,7 +224,7 @@
   if (w) *w=png_get_image_width(png_ptr,info_ptr);
   if (h) *h=png_get_image_height(png_ptr,info_ptr);
 
-  png_destroy_read_struct(&png_ptr,&info_ptr,png_infopp_NULL);
+  png_destroy_read_struct(&png_ptr,&info_ptr,NULL);
 
   /* now read the whole file as a binary blob */
   fseek(f,0,SEEK_END);
@@ -246,7 +246,7 @@
   return 0;
 
 error:
-  if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:png_infopp_NULL,png_infopp_NULL);
+  if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:NULL,NULL);
   if (f) fclose(f);
   return -1;
 }