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.
This commit is contained in:
Ben Bullock 2020-12-11 19:12:40 +09:00 committed by Cosmin Truta
parent c4bd411c35
commit cd03aaf7bf

View File

@ -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