summaryrefslogtreecommitdiff
path: root/community/gpac/libpng14-infopp-null.patch
blob: b02456557eaa8a95d5ce1cc68d3a27642ee00a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -upr gpac.orig/src/media_tools/img.c gpac/src/media_tools/img.c
--- gpac.orig/src/media_tools/img.c	2010-01-24 19:03:28.000000000 +0200
+++ gpac/src/media_tools/img.c	2010-01-24 19:04:07.000000000 +0200
@@ -551,7 +551,7 @@ GF_Err gf_img_png_enc(char *data, u32 wi
 	/* Allocate/initialize the image information data.  REQUIRED */
 	info_ptr = png_create_info_struct(png_ptr);
 	if (info_ptr == NULL) {
-		png_destroy_write_struct(&png_ptr,  png_infopp_NULL);
+		png_destroy_write_struct(&png_ptr, NULL);
 		return GF_IO_ERR;
 	}