Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
640f7fd8
Commit
640f7fd8
authored
Jun 21, 2009
by
Jean-Marc Valin
Browse files
Gives an error when trying to create a stereo mode with DISABLE_STEREO defined.
parent
2014ca38
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/modes.c
View file @
640f7fd8
...
...
@@ -418,6 +418,17 @@ CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_size, int *e
#endif
#endif
/* !STATIC_MODES */
#ifdef DISABLE_STEREO
if
(
channels
>
1
)
{
celt_warning
(
"Stereo support was disable from this build"
);
if
(
error
)
*
error
=
CELT_BAD_ARG
;
return
NULL
;
}
#endif
mdct_init
(
&
mode
->
mdct
,
2
*
mode
->
mdctSize
);
mode
->
fft
=
pitch_state_alloc
(
MAX_PERIOD
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment