Commit c0c283f3 authored by jbr's avatar jbr

Assert that ff_lpc_calc_coefs() is called with a valid LPC method.

Patch by Patrik Kullman (patrik A yes D nu).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17217 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 059dd681
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment