From 77aa7d50a45dc99daf23d2c3d06374b2d43cf6fe 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: I4484b1f00223a0be18cbe924b24a9f5ccffb7ea2 --- 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;