mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
fix for big-endian
(Issue #150: https://code.google.com/p/webp/issues/detail?id=150) Change-Id: Iad46d375a8c5eabae37cde8f55b3e7448601f264
This commit is contained in:
parent
f975b67f66
commit
4437061735
@ -194,6 +194,7 @@ static WEBP_INLINE void VP8LoadNewBytes(VP8BitReader* const br) {
|
|||||||
#endif
|
#endif
|
||||||
#else // BIG_ENDIAN
|
#else // BIG_ENDIAN
|
||||||
bits = (bit_t)in_bits;
|
bits = (bit_t)in_bits;
|
||||||
|
if (BITS != 8 * sizeof(bit_t)) bits >>= (8 * sizeof(bit_t) - BITS);
|
||||||
#endif
|
#endif
|
||||||
#ifndef USE_RIGHT_JUSTIFY
|
#ifndef USE_RIGHT_JUSTIFY
|
||||||
br->value_ |= bits << (-br->bits_);
|
br->value_ |= bits << (-br->bits_);
|
||||||
|
Loading…
Reference in New Issue
Block a user