diff options
author | André Klitzing <aklitzing@gmail.com> | 2019-07-19 11:48:50 +0200 |
---|---|---|
committer | André Klitzing <aklitzing@gmail.com> | 2019-07-22 13:37:27 +0200 |
commit | d4861c2a836f323e1c4694bf7830e69ef845b8ce (patch) | |
tree | 703fbdb0483211688efc93895fcfe1e9be32fc1f /src/3rdparty/libwebp/src/utils/utils.h | |
parent | 7bdf0823b64e53a90f7a54151afada3aaceb7ba1 (diff) |
Update bundled libwebp to version 1.0.3
[ChangeLog][Third-Party Code] Update bundled libwebp to version 1.0.3
Change-Id: I7aef89e209923af0e516024c26ebce4a8158d4d1
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/3rdparty/libwebp/src/utils/utils.h')
-rw-r--r-- | src/3rdparty/libwebp/src/utils/utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/libwebp/src/utils/utils.h b/src/3rdparty/libwebp/src/utils/utils.h index c7620f9..2a3ec92 100644 --- a/src/3rdparty/libwebp/src/utils/utils.h +++ b/src/3rdparty/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) { |