Bug 488800. qcms: accept ICCv4 profiles. r=bobbyholley

ICCv4 profiles are a superset of ICCv2 so it shouldn't hurt us to accept them and
just treat them the same way we do ICCv2 profiles.
This commit is contained in:
Jeff Muizelaar 2009-10-02 17:57:25 -04:00
Родитель 513f5a6863
Коммит 428d186fbc
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -148,10 +148,12 @@ static void check_profile_version(struct mem_source *src)
uint8_t minor_revision = read_u8(src, 8 + 1);
uint8_t reserved1 = read_u8(src, 8 + 2);
uint8_t reserved2 = read_u8(src, 8 + 3);
if (major_revision != 0x4) {
if (major_revision > 0x2)
invalid_source(src, "Unsupported major revision");
if (minor_revision > 0x40)
invalid_source(src, "Unsupported minor revision");
}
if (reserved1 != 0 || reserved2 != 0)
invalid_source(src, "Invalid reserved bytes");
}