mupen64plus-1.5-libpng14.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. http://bugs.gentoo.org/show_bug.cgi?id=308753
  2. --- rice_video/liblinux/pngrw.c
  3. +++ rice_video/liblinux/pngrw.c
  4. @@ -136,9 +136,9 @@
  5. if (end_info != NULL)
  6. png_destroy_read_struct((png_structp *) &png_ptr, (png_infop *) &info_ptr, (png_infop *) &end_info);
  7. else if (info_ptr != NULL)
  8. - png_destroy_read_struct((png_structp *) &png_ptr, (png_infop *) &info_ptr, png_infopp_NULL);
  9. + png_destroy_read_struct((png_structp *) &png_ptr, (png_infop *) &info_ptr, NULL);
  10. else if (png_ptr != NULL)
  11. - png_destroy_read_struct((png_structp *) &png_ptr, png_infopp_NULL, png_infopp_NULL);
  12. + png_destroy_read_struct((png_structp *) &png_ptr, NULL, NULL);
  13. if (rows)
  14. {
  15. if (rows[0])
  16. @@ -162,7 +162,7 @@
  17. /* check the signature */
  18. fread( signature, 1, 8, file );
  19. - if ( !png_check_sig( signature, 8 ) )
  20. + if ( png_sig_cmp( signature, 0, 8 ) )
  21. longjmp( err_jmp, (int)errUnsupportedFileFormat );
  22. /* create a pointer to the png read structure */
  23. @@ -199,7 +199,7 @@
  24. /* extract the data we need to form the HBITMAP from the PNG header */
  25. png_get_IHDR( png_ptr, info_ptr, &Width, &Height, &BitDepth, &ColorType,
  26. - &InterlaceType, int_p_NULL, int_p_NULL);
  27. + &InterlaceType, (int *) NULL, (int *) NULL);
  28. img->width = Width;
  29. img->height = Height;