ref: 382cad43ce1505a8bc809dd557b8b423d0017e24
parent: 44e27dd8c2e5bf0c85346f7189765e2338d8c0a9
author: Jean-Marc Valin <[email protected]>
date: Mon Aug 29 21:39:40 EDT 2011
Custom modes fixes (got broken by the s/celt_alloc/opus_alloc/)
--- a/libcelt/rate.c
+++ b/libcelt/rate.c
@@ -84,7 +84,7 @@
unsigned char *bits;
unsigned char *cap;
- cindex = celt_alloc(sizeof(cache->index[0])*m->nbEBands*(LM+2));
+ cindex = opus_alloc(sizeof(cache->index[0])*m->nbEBands*(LM+2));
cache->index = cindex;
/* Scan for all unique band sizes */
@@ -124,7 +124,7 @@
}
}
}
- bits = celt_alloc(sizeof(unsigned char)*curr);
+ bits = opus_alloc(sizeof(unsigned char)*curr);
cache->bits = bits;
cache->size = curr;
/* Compute the cache for all unique sizes */
@@ -140,7 +140,7 @@
/* Compute the maximum rate for each band at which we'll reliably use as
many bits as we ask for. */
- cache->caps = cap = celt_alloc(sizeof(cache->caps[0])*(LM+1)*2*m->nbEBands);
+ cache->caps = cap = opus_alloc(sizeof(cache->caps[0])*(LM+1)*2*m->nbEBands);
for (i=0;i<=LM;i++)
{
for (C=1;C<=2;C++)