Commit 640f7fd8 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Gives an error when trying to create a stereo mode with DISABLE_STEREO defined.

parent 2014ca38
......@@ -418,6 +418,17 @@ CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int *e
#endif /* !STATIC_MODES */
if (channels > 1)
celt_warning("Stereo support was disable from this build");
if (error)
*error = CELT_BAD_ARG;
return NULL;
mdct_init(&mode->mdct, 2*mode->mdctSize);
mode->fft = pitch_state_alloc(MAX_PERIOD);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment