From cd03aaf7bf0e0c748b8c6cb34a56b402b40d61d0 Mon Sep 17 00:00:00 2001 From: Ben Bullock Date: Fri, 11 Dec 2020 19:12:40 +0900 Subject: [PATCH] Remove second call to write_eXIf The second call to write_eXIf doesn't check whether the first call succeeded; no other chunks except tIME and the text chunks seem to be doubled like this. The second call causes the eXIf chunk to incorrectly be written twice. --- pngwrite.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pngwrite.c b/pngwrite.c index 59377a4dd..d2867a4b2 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -438,11 +438,6 @@ png_write_end(png_structrp png_ptr, png_inforp info_ptr) } #endif -#ifdef PNG_WRITE_eXIf_SUPPORTED - if ((info_ptr->valid & PNG_INFO_eXIf) != 0) - png_write_eXIf(png_ptr, info_ptr->exif, info_ptr->num_exif); -#endif - #ifdef PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED write_unknown_chunks(png_ptr, info_ptr, PNG_AFTER_IDAT); #endif