Commit c4a36b6f authored by Michael Niedermayer's avatar Michael Niedermayer

lpc: check that lpc_type is valid in ff_lpc_calc_coefs

Fixes CID700759
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8edf9b1f
......@@ -226,7 +226,8 @@ int ff_lpc_calc_coefs(LPCContext *s,
}
for(i=max_order-1; i>0; i--)
ref[i] = ref[i-1] - ref[i];
}
} else
av_assert0(0);
opt_order = max_order;
if(omethod == ORDER_METHOD_EST) {
......
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