Skip to content

Commit 220b2b4

Browse files
Merge pull request #9280 from MarkLee131/fix/webp-inject-vp8x-height-check
Fix copy-paste error in WebPImage::inject_VP8X height check
2 parents 5709119 + 5e8017f commit 220b2b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webpimage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ void WebPImage::inject_VP8X(BasicIo& iIo, bool has_xmp, bool has_exif, bool has_
770770
data[6] = (w >> 16) & 0xFF;
771771

772772
/* set height - stored in 24bits */
773-
Internal::enforce(width > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
773+
Internal::enforce(height > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
774774
uint32_t h = height - 1;
775775
data[7] = h & 0xFF;
776776
data[8] = (h >> 8) & 0xFF;

0 commit comments

Comments
 (0)