diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 7f951b44a1dcd129dc7ab8d94caf36283359dae1..92c701beab1f45fda02d389e863fc5ac9c048960 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -112,7 +112,7 @@ int ff_lpc_calc_coefs(DSPContext *s, int i, j, pass; int opt_order; - assert(max_order >= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER); + assert(max_order >= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER && use_lpc > 0); if(use_lpc == 1){ s->flac_compute_autocorr(samples, blocksize, max_order, autoc);