diff options
author | Patrik Kullman <patrik@yes.nu> | 2009-02-13 22:03:11 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-02-13 22:03:11 +0000 |
commit | eabe8c7033945d8042ebb75b08daed24d8852a10 (patch) | |
tree | 5a2203865a2b0f379037f18d508a7b1b46fc95ae /libavcodec/lpc.c | |
parent | 83f63ffb2216a8c0271adac4fadb318b96452685 (diff) | |
download | ffmpeg-eabe8c7033945d8042ebb75b08daed24d8852a10.tar.gz |
Assert that ff_lpc_calc_coefs() is called with a valid LPC method.
Patch by Patrik Kullman (patrik A yes D nu).
Originally committed as revision 17217 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r-- | libavcodec/lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 7f951b44a1..92c701beab 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); |