mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
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:
parent
c4bd411c35
commit
cd03aaf7bf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user