diff options
author | Mans Rullgard <mans@mansr.com> | 2011-07-17 11:24:34 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-07-18 18:48:13 +0100 |
commit | 3f5dcde7e656618e531968fff25773d80e96278f (patch) | |
tree | e9e2df1afd6658c46f51c2b858b5234f8aa52c49 /libavcodec/lsp.c | |
parent | b13c6e336cea3bafd182448d97e50c42c4d7a710 (diff) | |
download | ffmpeg-3f5dcde7e656618e531968fff25773d80e96278f.tar.gz |
Remove VLAs in ff_amrwb_lsp2lpc()
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/lsp.c')
-rw-r--r-- | libavcodec/lsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/lsp.c b/libavcodec/lsp.c index 26b35843b6..1b4afa22e8 100644 --- a/libavcodec/lsp.c +++ b/libavcodec/lsp.c @@ -120,8 +120,8 @@ void ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_order) void ff_amrwb_lsp2lpc(const double *lsp, float *lp, int lp_order) { int lp_half_order = lp_order >> 1; - double buf[lp_half_order + 1]; - double pa[lp_half_order + 1]; + double buf[MAX_LP_HALF_ORDER + 1]; + double pa[MAX_LP_HALF_ORDER + 1]; double *qa = buf + 1; int i,j; |