summaryrefslogtreecommitdiff
blob: f87132b0be444cc38b92d0f2c691bd5c2d9f062f (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
--- videorbits-2.205/src/simple_png_read.c
+++ videorbits-2.205/src/simple_png_read.c
@@ -92,7 +92,7 @@
     return -1;
   }
 
-  if (setjmp(png_ptr->jmpbuf)) {
+  if (setjmp(png_jmpbuf(png_ptr))) {
     fprintf(stderr, "simple_png_read: error (internal)\n"); 
     png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
     fclose(fp);
@@ -226,7 +226,7 @@
     return -1;
   }
 
-  if (setjmp(png_ptr->jmpbuf)) {
+  if (setjmp(png_jmpbuf(png_ptr))) {
     fprintf(stderr, "simple_png_read_header: error\n"); 
     png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
     fclose(fp);
--- videorbits-2.205/src/simple_png_write.c
+++ videorbits-2.205/src/simple_png_write.c
@@ -18,6 +18,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <png.h>
+#include <zlib.h>
 
 int simple_png_write_rgba(
   char *filename,