From 1dd419ced5975024ee76b1636b25868d24143cad Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 9 Feb 2015 23:57:14 -0800 Subject: [PATCH] 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 --- src/enc/picture_csp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/picture_csp.c b/src/enc/picture_csp.c index 01bfceaf..2abef828 100644 --- a/src/enc/picture_csp.c +++ b/src/enc/picture_csp.c @@ -843,7 +843,7 @@ static int ImportYUVAFromRGBA(const uint8_t* const r_ptr, if (has_alpha) { WebPInitAlphaProcessing(); assert(step == 4); -#if defined(USE_INVERSE_ALPHA_TABLE) +#if defined(USE_GAMMA_COMPRESSION) && defined(USE_INVERSE_ALPHA_TABLE) assert(kAlphaFix + kGammaFix <= 31); #endif }