Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Vorbis
Commits
112d3bd0
Commit
112d3bd0
authored
May 17, 2018
by
Thomas Daede
Browse files
Sanity check number of channels in setup.
Fixes
#2335
.
parent
89f651fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/vorbisenc.c
View file @
112d3bd0
...
...
@@ -684,6 +684,7 @@ int vorbis_encode_setup_init(vorbis_info *vi){
highlevel_encode_setup
*
hi
=&
ci
->
hi
;
if
(
ci
==
NULL
)
return
(
OV_EINVAL
);
if
(
vi
->
channels
<
1
||
vi
->
channels
>
255
)
return
(
OV_EINVAL
);
if
(
!
hi
->
impulse_block_p
)
i0
=
1
;
/* too low/high an ATH floater is nonsensical, but doesn't break anything */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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