Disabling some checks for the C55
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 13 Aug 2009 00:29:57 +0000 (20:29 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Thu, 13 Aug 2009 00:29:57 +0000 (20:29 -0400)
libcelt/mdct.c
libcelt/modes.c

index 80448a9..f08bdef 100644 (file)
@@ -64,8 +64,10 @@ void mdct_init(mdct_lookup *l,int N)
    l->n = N;
    N2 = N>>1;
    l->kfft = cpx32_fft_alloc(N>>2);
+#ifndef ENABLE_TI_DSPLIB55
    if (l->kfft==NULL)
      return;
+#endif
    l->trig = (kiss_twiddle_scalar*)celt_alloc(N2*sizeof(kiss_twiddle_scalar));
    if (l->trig==NULL)
      return;
index ab94404..fc2aeae 100644 (file)
@@ -438,8 +438,11 @@ CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int *e
    mdct_init(&mode->shortMdct, 2*mode->shortMdctSize);
    mode->shortWindow = mode->window;
    mode->prob = quant_prob_alloc(mode);
-   if ((mode->mdct.trig==NULL) || (mode->mdct.kfft==NULL) || (mode->fft==NULL) ||
-       (mode->shortMdct.trig==NULL) || (mode->shortMdct.kfft==NULL) || (mode->prob==NULL))
+   if ((mode->mdct.trig==NULL) || (mode->shortMdct.trig==NULL)
+#ifndef ENABLE_TI_DSPLIB55
+        || (mode->mdct.kfft==NULL) || (mode->fft==NULL) || (mode->shortMdct.kfft==NULL)
+#endif
+        || (mode->prob==NULL))
      goto failure;
 
    mode->marker_start = MODEVALID;