From 382cad43ce1505a8bc809dd557b8b423d0017e24 Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jmvalin@jmvalin.ca>
Date: Tue, 30 Aug 2011 01:39:40 -0400
Subject: [PATCH] Custom modes fixes (got broken by the
 s/celt_alloc/opus_alloc/)

---
 libcelt/rate.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libcelt/rate.c b/libcelt/rate.c
index e196d6a75..9ac857406 100644
--- a/libcelt/rate.c
+++ b/libcelt/rate.c
@@ -84,7 +84,7 @@ void compute_pulse_cache(CELTMode *m, int LM)
    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 @@ void compute_pulse_cache(CELTMode *m, int LM)
          }
       }
    }
-   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 @@ void compute_pulse_cache(CELTMode *m, int LM)
 
    /* 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++)
-- 
GitLab