Bug 768950 - TIFF private tags should not generate warnings.
This is a regression from bug 131975. Any unknown tag over 32768 is not an error. This is a reserved zone where it is allowed to create custom tags. The warning indeed changed since libtiff 4.0.0alpha where it has become: "Unknown field with tag %d (0x%x) encountered" This explains why it was not recognized anymore.
This commit is contained in:
parent
35a0d8ddbb
commit
3cb70e67cc
1 changed files with 4 additions and 1 deletions
|
|
@ -122,6 +122,7 @@ tiff_io_warning (const gchar *module,
|
|||
{
|
||||
gint tag = 0;
|
||||
|
||||
/* Before libtiff 4.0.0alpha. */
|
||||
if (! strcmp (fmt, "%s: unknown field with tag %d (0x%x) encountered"))
|
||||
{
|
||||
va_list ap_test;
|
||||
|
|
@ -133,7 +134,9 @@ tiff_io_warning (const gchar *module,
|
|||
tag = va_arg (ap_test, int);
|
||||
}
|
||||
/* for older versions of libtiff? */
|
||||
else if (! strcmp (fmt, "unknown field with tag %d (0x%x) ignored"))
|
||||
else if (! strcmp (fmt, "unknown field with tag %d (0x%x) ignored") ||
|
||||
/* Since libtiff 4.0.0alpha. */
|
||||
! strcmp (fmt, "Unknown field with tag %d (0x%x) encountered"))
|
||||
{
|
||||
va_list ap_test;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue