$NetBSD: patch-aj,v 1.1 2011/01/14 07:53:39 obache Exp $

* Use API instead of direct access, for png>=1.5.
  http://bugs.libming.org/show_bug.cgi?id=109

--- src/blocks/pngdbl.c.orig	2008-12-22 13:33:58.000000000 +0000
+++ src/blocks/pngdbl.c
@@ -61,7 +61,7 @@ static png_structp openPngFromFile(FILE 
 }
 
 static int pngReadFunc(png_structp png, unsigned char *buf, int len)
-{	SWFInput input = (SWFInput) png->io_ptr;
+{	SWFInput input = (SWFInput) png_get_io_ptr(png);
 	return SWFInput_read(input, buf, len);
 }
 
@@ -127,7 +127,7 @@ static int readPNG(png_structp png_ptr, 
 		return 0;
 	}
 
-	if(setjmp(png_ptr->jmpbuf))
+	if(setjmp(png_jmpbuf(png_ptr)))
 	{
 		png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
     	return 0;
