[FFmpeg-cvslog] Remove VLAs in ff_amrwb_lsp2lpc()
Mans Rullgard
git at videolan.org
Tue Jul 19 18:50:19 CEST 2011
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Jul 17 11:24:34 2011 +0100| [3f5dcde7e656618e531968fff25773d80e96278f] | committer: Mans Rullgard
Remove VLAs in ff_amrwb_lsp2lpc()
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f5dcde7e656618e531968fff25773d80e96278f
---
libavcodec/lsp.c | 4 ++--
libavcodec/lsp.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/lsp.c b/libavcodec/lsp.c
index 26b3584..1b4afa2 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;
diff --git a/libavcodec/lsp.h b/libavcodec/lsp.h
index 3648ec7..4b95567 100644
--- a/libavcodec/lsp.h
+++ b/libavcodec/lsp.h
@@ -91,7 +91,7 @@ void ff_amrwb_lsp2lpc(const double *lsp, float *lp, int lp_order);
void ff_acelp_lp_decode(int16_t* lp_1st, int16_t* lp_2nd, const int16_t* lsp_2nd, const int16_t* lsp_prev, int lp_order);
-#define MAX_LP_HALF_ORDER 8
+#define MAX_LP_HALF_ORDER 10
#define MAX_LP_ORDER (2*MAX_LP_HALF_ORDER)
/**
More information about the ffmpeg-cvslog
mailing list