diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-27 10:41:27 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-27 10:41:27 +0100 |
commit | 41995c3999521ea4486326fba27460d0f17c8f68 (patch) | |
tree | 0a6ea35b67b35ebf8417e3a83e6b91c1f2817848 /content/handlers/image | |
parent | fba7a349c073287418587b8892dfb9bd8b29490a (diff) | |
download | netsurf-41995c3999521ea4486326fba27460d0f17c8f68.tar.gz netsurf-41995c3999521ea4486326fba27460d0f17c8f68.tar.bz2 |
Image: WebP: Correct output buffer size for rowstride.
Diffstat (limited to 'content/handlers/image')
-rw-r--r-- | content/handlers/image/webp.c | 2 |
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 */ |