mbox series

[FFmpeg-devel,0/5] work around broken (apple) ICCv4 profiles

Message ID 20230927100630.50510-1-ffmpeg@haasn.xyz
Headers show
Series work around broken (apple) ICCv4 profiles | expand

Message

Niklas Haas Sept. 27, 2023, 10:03 a.m. UTC
Concludes the discussion from https://trac.ffmpeg.org/ticket/9673

It was found that at least one widely-used ICCv4 profile found in the
wild contains broken tagging which violates the ICCv4 specification. It
seems that lcms2 gets confused by this wrong tag and returns wrong
values for this profile as a result. Work around it by detecting this
case and printing a warning + overriding the tag by the fixed result.

Since this code is *already* hidden behind -flags2 icc_profile, I
decided not to add a separate "fix broken profiles" flag.