]> Pileus Git - ~andy/sunrise/blob - media-libs/ucil/files/libpng14.patch
new version: media-libs/unicap-0.9.8 (bug 175881)
[~andy/sunrise] / media-libs / ucil / files / libpng14.patch
1 diff -Naur src.old/ucil_png.c src/ucil_png.c
2 --- src.old/ucil_png.c  2010-01-17 07:49:29.000000000 +0000
3 +++ src/ucil_png.c      2010-05-22 10:35:55.090733124 +0000
4 @@ -77,7 +77,7 @@
5     if (info_ptr == NULL)
6     {
7        fclose(fp);
8 -      png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
9 +      png_destroy_read_struct(&png_ptr, NULL, NULL);
10        return( -1 );
11     }
12  
13 @@ -89,7 +89,7 @@
14     if (setjmp(png_jmpbuf(png_ptr)))
15     {
16        /* Free all of the memory associated with the png_ptr and info_ptr */
17 -      png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
18 +      png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
19        fclose(fp);
20        /* If we get here, we had a problem reading the file */
21        return( -1 );
22 @@ -109,7 +109,7 @@
23      * adjustment), then you can read the entire image (including
24      * pixels) into the info structure with this call:
25      */
26 -   png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY, png_voidp_NULL);
27 +   png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY, NULL);
28  
29     /* At this point you have read the entire image */
30     
31 @@ -174,7 +174,7 @@
32     }
33  
34     /* clean up after the read, and free any memory allocated - REQUIRED */
35 -   png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
36 +   png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
37  
38     /* close the file */
39     fclose(fp);