Oops! Fixed the fixed-point build
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Fri, 7 May 2010 00:15:27 +0000 (20:15 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 8 May 2010 01:20:22 +0000 (21:20 -0400)
libcelt/celt.c

index 56a4a86..8a9aad7 100644 (file)
@@ -934,7 +934,7 @@ int celt_encode_float(CELTEncoder * restrict st, const float * pcm, float * opti
       return CELT_BAD_ARG;
 
    C = CHANNELS(st->channels);
-   N = st->block_size;
+   N = st->mode->nbShortMdcts*st->mode->shortMdctSize;
    ALLOC(in, C*N, celt_int16);
 
    for (j=0;j<C*N;j++)
@@ -1602,7 +1602,7 @@ int celt_decode_float(CELTDecoder * restrict st, const unsigned char *data, int
       return CELT_BAD_ARG;
 
    C = CHANNELS(st->channels);
-   N = st->block_size;
+   N = st->mode->nbShortMdcts*st->mode->shortMdctSize;
    
    ALLOC(out, C*N, celt_int16);
    ret=celt_decode(st, data, len, out);