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
17ea4b7e
Commit
17ea4b7e
authored
Jun 30, 2009
by
Gregory Maxwell
Committed by
Jean-Marc Valin
Jun 30, 2009
Browse files
For some frame sizes there can be 5 shorts in a frame.
Correct an out of bounds access in this case.
parent
6d454d8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/celt.c
View file @
17ea4b7e
...
...
@@ -609,7 +609,7 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
if
(
shortBlocks
&&
!
transient_shift
)
{
celt_word32_t
sum
[
4
]
=
{
1
,
1
,
1
,
1
};
celt_word32_t
sum
[
5
]
=
{
1
,
1
,
1
,
1
,
1
};
int
m
;
for
(
c
=
0
;
c
<
C
;
c
++
)
{
...
...
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