提交 eabe8c70 编写于 作者: P Patrik Kullman 提交者: Justin Ruggles

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
上级 83f63ffb
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册