From f3dd3d1875291a7341276df040312ccacb079aae Mon Sep 17 00:00:00 2001 From: Maryla Date: Thu, 14 Dec 2023 14:12:35 +0100 Subject: [PATCH] Refuse to tone map images with altICC set. --- src/gainmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gainmap.c b/src/gainmap.c index e1c84badfc..6801b5ebe2 100644 --- a/src/gainmap.c +++ b/src/gainmap.c @@ -286,7 +286,7 @@ avifResult avifImageApplyGainMap(const avifImage * baseImage, { avifDiagnosticsClearError(diag); - if (baseImage->icc.size > 0) { + if (baseImage->icc.size > 0 || gainMap->altICC.size > 0) { avifDiagnosticsPrintf(diag, "Tone mapping for images with ICC profiles is not supported"); return AVIF_RESULT_NOT_IMPLEMENTED; }