shithub: opus

Download patch

ref: fbd82eb8f48444d14145013dbc473b37b6f59695
parent: 811f21ab76dbf2d8fee75992c690aa0b011b4b02
author: Jean-Marc Valin <[email protected]>
date: Thu May 6 16:15:27 EDT 2010

Oops! Fixed the fixed-point build

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -934,7 +934,7 @@
       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 @@
       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);