Skip to content

Commit

Permalink
Refuse to tone map images with altICC set.
Browse files Browse the repository at this point in the history
  • Loading branch information
maryla-uc committed Dec 14, 2023
1 parent b7e9237 commit f3dd3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gainmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f3dd3d1

Please sign in to comment.