shithub: opus

Download patch

ref: 9714f66d5f75ce400fdb7f38db75695695b125fa
parent: bb275c41017e17b9b80e8e060d5450097de0289e
author: Jean-Marc Valin <[email protected]>
date: Wed Aug 12 16:29:57 EDT 2009

Disabling some checks for the C55

--- a/libcelt/mdct.c
+++ b/libcelt/mdct.c
@@ -64,8 +64,10 @@
    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;
--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -438,8 +438,11 @@
    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;