aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/lsp.h
diff options
context:
space:
mode:
authorVitor Sessak2009-11-10 04:17:18 +0000
committerVitor Sessak2009-11-10 04:17:18 +0000
commit00fa73f052c1c0c0185ee4d2accb8fba065132f1 (patch)
treed1f9769436eecb37456bcf13c71d74478e181c0d /libavcodec/lsp.h
parentdccda293a0576d5414fafc0e95615c82a2f2399f (diff)
Avoid variable-length array use in ff_acelp_lspd2lpc()
Originally committed as revision 20496 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lsp.h')
-rw-r--r--libavcodec/lsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/lsp.h b/libavcodec/lsp.h
index 7201d5015b..18d9772b55 100644
--- a/libavcodec/lsp.h
+++ b/libavcodec/lsp.h
@@ -80,11 +80,16 @@ void ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_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
+
/**
* Reconstructs LPC coefficients from the line spectral pair frequencies.
*
* @param lsp line spectral pairs in cosine domain
* @param lpc linear predictive coding coefficients
+ * @param lp_half_order half the number of the amount of LPCs to be
+ * reconstructed, need to be smaller or equal to MAX_LP_HALF_ORDER
*
* @note buffers should have a minimux size of 2*lp_half_order elements.
*