issue 111: fix little-endian problem in bit-reader

patch by naideflan

Change-Id: I874dbd5588d5cd2559c54ca9ad5582fa3a589b1b
This commit is contained in:
Pascal Massimino 2012-03-27 05:55:20 -07:00
parent ed278e2279
commit 6f7bf645b4

View File

@ -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 {