From 590f615320d2bbb0fae1b5b3049e7555bbedeedb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= <4973094+kmilos@users.noreply.github.com> Date: Tue, 19 Sep 2023 20:59:34 +0200 Subject: [PATCH] Fix WebP ICCP chunk header Resolves https://github.com/Exiv2/exiv2/issues/2734 --- src/webpimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpimage.cpp b/src/webpimage.cpp index a689f198..12657314 100644 --- a/src/webpimage.cpp +++ b/src/webpimage.cpp @@ -768,7 +768,7 @@ void WebPImage::inject_VP8X(BasicIo& iIo, bool has_xmp, bool has_exif, bool has_ if (has_icc) { byte size_buff[WEBP_TAG_SIZE]; ul2Data(size_buff, static_cast(iccProfile_.size()), littleEndian); - if (iIo.write(reinterpret_cast(WEBP_CHUNK_HEADER_VP8X), WEBP_TAG_SIZE) != WEBP_TAG_SIZE) + if (iIo.write(reinterpret_cast(WEBP_CHUNK_HEADER_ICCP), WEBP_TAG_SIZE) != WEBP_TAG_SIZE) throw Error(ErrorCode::kerImageWriteFailed); if (iIo.write(size_buff, WEBP_TAG_SIZE) != WEBP_TAG_SIZE) throw Error(ErrorCode::kerImageWriteFailed);