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:
|
// gcc will recognize a 'rorw $8, ...' here:
|
||||||
bits = (bit_t)(in_bits >> 8) | ((in_bits & 0xff) << 8);
|
bits = (bit_t)(in_bits >> 8) | ((in_bits & 0xff) << 8);
|
||||||
#endif
|
#endif
|
||||||
#endif // LITTLE_ENDIAN
|
#else // LITTLE_ENDIAN
|
||||||
|
bits = (bit_t)in_bits;
|
||||||
|
#endif
|
||||||
br->value_ |= bits << br->missing_;
|
br->value_ |= bits << br->missing_;
|
||||||
br->missing_ -= (BITS);
|
br->missing_ -= (BITS);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user