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

Niklas Haas ffmpeg at haasn.xyz
Wed Sep 27 13:03:51 EEST 2023

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.

More information about the ffmpeg-devel mailing list