Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
2ee87126
Commit
2ee87126
authored
Oct 31, 2011
by
Rémi Denis-Courmont
Browse files
speex: fix occasional buffer overflow
(VLC simply lost one sample - no memory errors.)
parent
e9e13b75
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/audio_filter/resampler/speex.c
View file @
2ee87126
...
...
@@ -111,7 +111,7 @@ static block_t *Resample (filter_t *filter, block_t *in)
const
unsigned
orate
=
filter
->
fmt_out
.
audio
.
i_rate
;
spx_uint32_t
ilen
=
in
->
i_nb_samples
;
spx_uint32_t
olen
=
((
ilen
+
1
)
*
orate
)
/
irate
;
spx_uint32_t
olen
=
((
ilen
+
2
)
*
orate
)
/
irate
;
block_t
*
out
=
block_Alloc
(
olen
*
framesize
);
if
(
unlikely
(
out
==
NULL
))
...
...
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