dvdauthor/dvdauthor-0.7.0-libpng-1.5.patch

23 lines
532 B
Diff
Raw Normal View History

--- dvdauthor-0.7.0.orig/src/spuunmux.c
+++ dvdauthor-0.7.0/src/spuunmux.c
@@ -38,6 +38,7 @@
#include <netinet/in.h>
+#include <zlib.h>
#include <png.h>
#include "rgb.h"
@@ -610,7 +611,11 @@
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
return -1;
} /*if*/
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+ if (setjmp(png_jmpbuf(png_ptr)))
+#else
if (setjmp(png_ptr->jmpbuf))
+#endif
{
png_destroy_write_struct(&png_ptr, &info_ptr);
fclose(fp);