Mercurial > libavcodec.hg
changeset 8825:51274aff81fe libavcodec
Assert that ff_lpc_calc_coefs() is called with a valid LPC method.
Patch by Patrik Kullman (patrik A yes D nu).
author | jbr |
---|---|
date | Fri, 13 Feb 2009 22:03:11 +0000 |
parents | 9f929379bbca |
children | bffe8e6cb10e |
files | lpc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lpc.c Fri Feb 13 22:01:46 2009 +0000 +++ b/lpc.c Fri Feb 13 22:03:11 2009 +0000 @@ -112,7 +112,7 @@ 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);