From 12f78aec484b464f7c574cfcb7d5335dd97039c1 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Sun, 2 Sep 2012 09:06:44 -0700 Subject: [PATCH] fix the BITS=8 case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit spotted by Måns Rullgård (mans at mansr dot com) Change-Id: I4720dc2eeb645af894e396739be6fa11b5fe2739 --- src/utils/bit_reader.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/bit_reader.h b/src/utils/bit_reader.h index 36fc13e2..cc7aeece 100644 --- a/src/utils/bit_reader.h +++ b/src/utils/bit_reader.h @@ -93,6 +93,8 @@ static WEBP_INLINE void VP8LoadNewBytes(VP8BitReader* const br) { #elif (BITS == 16) // gcc will recognize a 'rorw $8, ...' here: bits = (bit_t)(in_bits >> 8) | ((in_bits & 0xff) << 8); +#else // BITS == 8 + bits = (bit_t)in_bits; #endif #else // LITTLE_ENDIAN bits = (bit_t)in_bits;