Browse Source

tiff: remove tiff type check for ICC profiles

Although the ICC specifications say to check for this, libtiff doesn't
and neither does any other TIFF implementation, and the TIFF specs
say that Photoshop has a different way to encapsulate ICC profiles,
and are asking for advice on how to deal with it.

So basically, photoshop puts a different type than what's specified,
no other implementation checks for this, we do because we tried to
follow the specs although its harmless to not, and ran into this bug
because we didn't know about it.
tags/n4.4
Lynne 5 years ago
parent
commit
7ad085b2c4
No known key found for this signature in database GPG Key ID: A2FEA5F03F034464
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavcodec/tiff.c

+ 0
- 3
libavcodec/tiff.c View File

@@ -1682,9 +1682,6 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
}
break;
case TIFF_ICC_PROFILE:
if (type != TIFF_UNDEFINED)
return AVERROR_INVALIDDATA;

gb_temp = s->gb;
bytestream2_seek(&gb_temp, SEEK_SET, off);



Loading…
Cancel
Save