Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2009-08-13 04:29:57 +0400
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2009-08-13 04:29:57 +0400
commit9714f66d5f75ce400fdb7f38db75695695b125fa (patch)
tree8868481fa1be7d443a5f9d02f0af14ea2e33fa89
parentbb275c41017e17b9b80e8e060d5450097de0289e (diff)
Disabling some checks for the C55
-rw-r--r--libcelt/mdct.c2
-rw-r--r--libcelt/modes.c7
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;