diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-27 13:54:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-27 13:54:05 +0100 |
commit | 61785bcc7d49cc2c6f1a351ed591dbf31748625b (patch) | |
tree | d47cd77a94c7b96d9c2f3800f6304f2ee5663d34 /thirdparty/libwebp/src/utils/utils.h | |
parent | 2751cea0d4ed0bf99d870067dc8114701083d485 (diff) | |
parent | 074d421dca94ec4ddadfbfa62268bda219bab46c (diff) |
Merge pull request #33109 from volzhs/libwebp-1.0.3
Update libwebp to 1.0.3
Diffstat (limited to 'thirdparty/libwebp/src/utils/utils.h')
-rw-r--r-- | thirdparty/libwebp/src/utils/utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/thirdparty/libwebp/src/utils/utils.h b/thirdparty/libwebp/src/utils/utils.h index c7620f91ec..2a3ec92678 100644 --- a/thirdparty/libwebp/src/utils/utils.h +++ b/thirdparty/libwebp/src/utils/utils.h @@ -92,14 +92,14 @@ static WEBP_INLINE uint32_t GetLE32(const uint8_t* const data) { // Store 16, 24 or 32 bits in little-endian order. static WEBP_INLINE void PutLE16(uint8_t* const data, int val) { assert(val < (1 << 16)); - data[0] = (val >> 0); - data[1] = (val >> 8); + data[0] = (val >> 0) & 0xff; + data[1] = (val >> 8) & 0xff; } static WEBP_INLINE void PutLE24(uint8_t* const data, int val) { assert(val < (1 << 24)); PutLE16(data, val & 0xffff); - data[2] = (val >> 16); + data[2] = (val >> 16) & 0xff; } static WEBP_INLINE void PutLE32(uint8_t* const data, uint32_t val) { |