fix (uncompiled) typo

output was not properly descaled when compiled
without USE_GAMMA_COMPRESSION

Change-Id: I5282c9573cfcfbef4be22b6b3cdec7e16cad9c1c
This commit is contained in:
skal 2014-06-27 17:02:24 +02:00
parent 1f3e5f1e60
commit 824eab1086

View File

@ -657,8 +657,7 @@ static WEBP_INLINE int LinearToGamma(uint32_t base_value, int shift) {
static void InitGammaTables(void) {}
static WEBP_INLINE uint32_t GammaToLinear(uint8_t v) { return v; }
static WEBP_INLINE int LinearToGamma(uint32_t base_value, int shift) {
(void)shift;
return v;
return (int)(base_value << shift);
}
#endif // USE_GAMMA_COMPRESSION