summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers')
-rw-r--r--content/handlers/image/webp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/image/webp.c b/content/handlers/image/webp.c
index 14f953283..b8748593b 100644
--- a/content/handlers/image/webp.c
+++ b/content/handlers/image/webp.c
@@ -134,7 +134,7 @@ webp_cache_convert(struct content *c)
decoded = WebPDecodeRGBAInto(source_data,
source_size,
pixels,
- webpfeatures.width * webpfeatures.height * 4,
+ rowstride * webpfeatures.height,
rowstride);
if (decoded == NULL) {
/* decode failed */