summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-27 10:41:27 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-27 10:41:27 +0100
commit41995c3999521ea4486326fba27460d0f17c8f68 (patch)
tree0a6ea35b67b35ebf8417e3a83e6b91c1f2817848 /content/handlers
parentfba7a349c073287418587b8892dfb9bd8b29490a (diff)
downloadnetsurf-41995c3999521ea4486326fba27460d0f17c8f68.tar.gz
netsurf-41995c3999521ea4486326fba27460d0f17c8f68.tar.bz2
Image: WebP: Correct output buffer size for rowstride.
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 */