]> granicus.if.org Git - imagemagick/commitdiff
Ignore APNG chunks even when libpng was built with the "APNG patch".
authorglennrp <glennrp@git.imagemagick.org>
Tue, 29 May 2012 19:13:52 +0000 (19:13 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Tue, 29 May 2012 19:13:52 +0000 (19:13 +0000)
coders/png.c

index d374ec322a8a19ab22beb73b9086bb7a0dd0b09e..53a769800f0430ed48db7166ce4953835e5bada3 100644 (file)
@@ -2094,7 +2094,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
   ssize_t
     j;
 
-#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
+#ifdef PNG_UNKNOWN_CHUNKS_SUPPORTED
   png_byte unused_chunks[]=
   {
     104,  73,  83,  84, (png_byte) '\0',   /* hIST */
@@ -2103,6 +2103,12 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
     115,  67,  65,  76, (png_byte) '\0',   /* sCAL */
     115,  80,  76,  84, (png_byte) '\0',   /* sPLT */
     116,  73,  77,  69, (png_byte) '\0',   /* tIME */
+#ifdef PNG_APNG_SUPPORTED /* libpng was built with APNG patch; */
+                          /* ignore the APNG chunks */
+     97,  99,  84,  76, (png_byte) '\0',   /* acTL */
+    102,  99,  84,  76, (png_byte) '\0',   /* fcTL */
+    102, 100,  65,  84, (png_byte) '\0',   /* fdAT */
+#endif
   };
 #endif