Skip to content

Commit

Permalink
Annotate ICC
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud committed Jan 17, 2025
1 parent e8e2898 commit 3805532
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/shared/avifjpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ static avifBool avifJPEGReadInternal(FILE * f,
unsigned int iccDataLen;
if (read_icc_profile(&cinfo, &iccDataTmp, &iccDataLen)) {
iccData = iccDataTmp;
AVIF_ANNOTATE_MEMORY_IS_INITIALIZED(iccDataTmp, iccDataLen);
if (avifImageSetProfileICC(avif, iccDataTmp, (size_t)iccDataLen) != AVIF_RESULT_OK) {
fprintf(stderr, "Setting ICC profile failed: %s (out of memory)\n", inputFilename);
goto cleanup;
Expand Down

0 comments on commit 3805532

Please sign in to comment.