summaryrefslogtreecommitdiffstats
path: root/thirdparty/libwebp/src/dec/webp_dec.c
diff options
context:
space:
mode:
authorDeeJayLSP <djlsplays@gmail.com>2023-01-25 10:24:01 -0300
committerDeeJayLSP <djlsplays@gmail.com>2023-01-25 10:38:03 -0300
commitd8e8517d1174e8593338329a0535da178444817a (patch)
tree40cc35c11f5ae4813e8f9f8340f7771800704d03 /thirdparty/libwebp/src/dec/webp_dec.c
parent6369196b9698c92854bb4dba458ad0b099965d8f (diff)
downloadredot-engine-d8e8517d1174e8593338329a0535da178444817a.tar.gz
libwebp: Sync with upstream 1.3.0
Diffstat (limited to 'thirdparty/libwebp/src/dec/webp_dec.c')
-rw-r--r--thirdparty/libwebp/src/dec/webp_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/libwebp/src/dec/webp_dec.c b/thirdparty/libwebp/src/dec/webp_dec.c
index 77a54c55d2..3f4f7bb659 100644
--- a/thirdparty/libwebp/src/dec/webp_dec.c
+++ b/thirdparty/libwebp/src/dec/webp_dec.c
@@ -179,7 +179,7 @@ static VP8StatusCode ParseOptionalChunks(const uint8_t** const data,
return VP8_STATUS_BITSTREAM_ERROR; // Not a valid chunk size.
}
// For odd-sized chunk-payload, there's one byte padding at the end.
- disk_chunk_size = (CHUNK_HEADER_SIZE + chunk_size + 1) & ~1;
+ disk_chunk_size = (CHUNK_HEADER_SIZE + chunk_size + 1) & ~1u;
total_size += disk_chunk_size;
// Check that total bytes skipped so far does not exceed riff_size.