Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2009-12-11 15:19:09 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2009-12-11 15:38:38 +0300
commitb8002a0ef30d10be1f8e851e72115b376744a3f5 (patch)
treedaf545aa37d8909f15b14ce5117981cb245b2721 /libcelt/plc.c
parente14fe9046fde445108736c6ddbcf4e9c85eaedbd (diff)
Varlength arrays fix for C89
Diffstat (limited to 'libcelt/plc.c')
-rw-r--r--libcelt/plc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcelt/plc.c b/libcelt/plc.c
index 6b2f3e0..5689652 100644
--- a/libcelt/plc.c
+++ b/libcelt/plc.c
@@ -106,7 +106,9 @@ void _celt_autocorr(
{
float d;
int i;
- float xx[n];
+ VARDECL(float, xx);
+ SAVE_STACK;
+ ALLOC(xx, n, float);
for (i=0;i<n;i++)
xx[i] = x[i];
for (i=0;i<overlap;i++)
@@ -122,4 +124,5 @@ void _celt_autocorr(
lag--;
}
ac[0] += 10;
+ RESTORE_STACK;
}