picture_csp: fix build w/USE_GAMMA_COMPRESSION undefined

kGammaFix is now only defined with USE_GAMMA_COMPRESSION;

fixes:
use of undeclared identifier 'kGammaFix'

Change-Id: Ib1e2f410eff9b83be065894f88181f91dd2776e1
This commit is contained in:
James Zern 2015-02-09 23:57:14 -08:00
parent d97c143da6
commit 1dd419ced5

View File

@ -843,7 +843,7 @@ static int ImportYUVAFromRGBA(const uint8_t* const r_ptr,
if (has_alpha) { if (has_alpha) {
WebPInitAlphaProcessing(); WebPInitAlphaProcessing();
assert(step == 4); assert(step == 4);
#if defined(USE_INVERSE_ALPHA_TABLE) #if defined(USE_GAMMA_COMPRESSION) && defined(USE_INVERSE_ALPHA_TABLE)
assert(kAlphaFix + kGammaFix <= 31); assert(kAlphaFix + kGammaFix <= 31);
#endif #endif
} }