summaryrefslogtreecommitdiff
path: root/graphics/jbig2dec/files/patch-libpng15
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/jbig2dec/files/patch-libpng15')
-rw-r--r--graphics/jbig2dec/files/patch-libpng1520
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/jbig2dec/files/patch-libpng15 b/graphics/jbig2dec/files/patch-libpng15
new file mode 100644
index 000000000000..2297c52d6f66
--- /dev/null
+++ b/graphics/jbig2dec/files/patch-libpng15
@@ -0,0 +1,20 @@
+--- jbig2_image_png.c
++++ jbig2_image_png.c
+@@ -33,7 +33,7 @@
+ {
+ png_size_t check;
+
+- check = fwrite(data, 1, length, (png_FILE_p)png_ptr->io_ptr);
++ check = fwrite(data, 1, length, (png_FILE_p)png_get_io_ptr(png_ptr));
+ if (check != length) {
+ png_error(png_ptr, "Write Error");
+ }
+@@ -43,7 +43,7 @@
+ jbig2_png_flush(png_structp png_ptr)
+ {
+ png_FILE_p io_ptr;
+- io_ptr = (png_FILE_p)CVT_PTR((png_ptr->io_ptr));
++ io_ptr = (png_FILE_p)png_get_io_ptr(png_ptr);
+ if (io_ptr != NULL)
+ fflush(io_ptr);
+ }