aboutsummaryrefslogtreecommitdiff
path: root/src/dec/buffer_dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dec/buffer_dec.c')
-rw-r--r--src/dec/buffer_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dec/buffer_dec.c b/src/dec/buffer_dec.c
index 4786cf0d..11ce76f1 100644
--- a/src/dec/buffer_dec.c
+++ b/src/dec/buffer_dec.c
@@ -75,7 +75,7 @@ static VP8StatusCode CheckDecBuffer(const WebPDecBuffer* const buffer) {
const WebPRGBABuffer* const buf = &buffer->u.RGBA;
const int stride = abs(buf->stride);
const uint64_t size =
- MIN_BUFFER_SIZE(width * kModeBpp[mode], height, stride);
+ MIN_BUFFER_SIZE((uint64_t)width * kModeBpp[mode], height, stride);
ok &= (size <= buf->size);
ok &= (stride >= width * kModeBpp[mode]);
ok &= (buf->rgba != NULL);