mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
issue 111: fix little-endian problem in bit-reader
patch by naideflan Change-Id: I874dbd5588d5cd2559c54ca9ad5582fa3a589b1b
This commit is contained in:
parent
ed278e2279
commit
6f7bf645b4
@ -92,7 +92,9 @@ static WEBP_INLINE void VP8LoadNewBytes(VP8BitReader* const br) {
|
||||
// gcc will recognize a 'rorw $8, ...' here:
|
||||
bits = (bit_t)(in_bits >> 8) | ((in_bits & 0xff) << 8);
|
||||
#endif
|
||||
#endif // LITTLE_ENDIAN
|
||||
#else // LITTLE_ENDIAN
|
||||
bits = (bit_t)in_bits;
|
||||
#endif
|
||||
br->value_ |= bits << br->missing_;
|
||||
br->missing_ -= (BITS);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user