| 1 | Use the new TIFFFieldSetGetSize API from libtiff 4.4 instead of the
|
| 2 | private and removed _TIFFDataSize declared in the unbundling patch.
|
| 3 |
|
| 4 | Patch taken from Fedora:
|
| 5 |
|
| 6 | https://src.fedoraproject.org/rpms/freeimage/blob/rawhide/f/freeimage-libtiff44.patch
|
| 7 |
|
| 8 | diff -rupN --no-dereference freeimage-svn-r1889-FreeImage-trunk/Source/Metadata/XTIFF.cpp freeimage-svn-r1889-FreeImage-trunk-new/Source/Metadata/XTIFF.cpp
|
| 9 | |
| 10 | |
| 11 | @@ -747,7 +747,7 @@ tiff_write_exif_tags(TIFF *tif, TagLib::
|
| 12 | continue;
|
| 13 | }
|
| 14 | // type of storage may differ (e.g. rationnal array vs float array type)
|
| 15 | - if((unsigned)_TIFFDataSize(tif_tag_type) != FreeImage_TagDataWidth(tag_type)) {
|
| 16 | + if((unsigned)TIFFFieldSetGetSize(fld) != FreeImage_TagDataWidth(tag_type)) {
|
| 17 | // skip tag or _TIFFmemcpy will fail
|
| 18 | continue;
|
| 19 | }
|