diff options
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2009-08-13 04:29:57 +0400 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2009-08-13 04:29:57 +0400 |
commit | 9714f66d5f75ce400fdb7f38db75695695b125fa (patch) | |
tree | 8868481fa1be7d443a5f9d02f0af14ea2e33fa89 | |
parent | bb275c41017e17b9b80e8e060d5450097de0289e (diff) |
Disabling some checks for the C55
-rw-r--r-- | libcelt/mdct.c | 2 | ||||
-rw-r--r-- | libcelt/modes.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libcelt/mdct.c b/libcelt/mdct.c index 80448a9..f08bdef 100644 --- a/libcelt/mdct.c +++ b/libcelt/mdct.c @@ -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; diff --git a/libcelt/modes.c b/libcelt/modes.c index ab94404..fc2aeae 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c @@ -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; |