diff --git a/src/enc/picture_csp.c b/src/enc/picture_csp.c index 9c8305c7..c662396e 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 }