[FFmpeg-cvslog] r17217 - trunk/libavcodec/lpc.c
jbr
subversion
Fri Feb 13 23:03:11 CET 2009
Author: jbr
Date: Fri Feb 13 23:03:11 2009
New Revision: 17217
Log:
Assert that ff_lpc_calc_coefs() is called with a valid LPC method.
Patch by Patrik Kullman (patrik A yes D nu).
Modified:
trunk/libavcodec/lpc.c
Modified: trunk/libavcodec/lpc.c
==============================================================================
--- trunk/libavcodec/lpc.c Fri Feb 13 23:01:46 2009 (r17216)
+++ trunk/libavcodec/lpc.c Fri Feb 13 23:03:11 2009 (r17217)
@@ -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);
More information about the ffmpeg-cvslog
mailing list