Think I got static modes working again
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sun, 27 Jun 2010 13:56:26 +0000 (09:56 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sun, 27 Jun 2010 13:56:26 +0000 (09:56 -0400)
libcelt/modes.c

index 85a8753..27a690b 100644 (file)
@@ -302,6 +302,7 @@ CELTMode *celt_mode_create(celt_int32 Fs, int frame_size, int *error)
    if (mode==NULL)
       goto failure;
    CELT_COPY(mode, m, 1);
+   mode->bits = mode->_bits+1;
    mode->marker_start = MODEPARTIAL;
 #else
    int res;