Skip to content

Commit

Permalink
Fix WebP ICCP chunk header
Browse files Browse the repository at this point in the history
Resolves Exiv2#2734
  • Loading branch information
kmilos authored and neheb committed Sep 19, 2023
1 parent 1ae47bc commit 590f615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webpimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint32_t>(iccProfile_.size()), littleEndian);
if (iIo.write(reinterpret_cast<const byte*>(WEBP_CHUNK_HEADER_VP8X), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
if (iIo.write(reinterpret_cast<const byte*>(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);
Expand Down

0 comments on commit 590f615

Please sign in to comment.