mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
Fix buffer allocation problem.
Original commit message from CVS: Fix buffer allocation problem.
This commit is contained in:
parent
7bf083b366
commit
7f07809cd9
1 changed files with 2 additions and 1 deletions
|
@ -165,7 +165,7 @@ void resample_scale(resample_t * r, void *i_buf, unsigned int i_size)
|
|||
r->i_start, r->i_end, r->o_start);
|
||||
}
|
||||
|
||||
if ((r->filter_length + r->i_samples)*2*2 > r->buffer_len) {
|
||||
if ((r->filter_length + r->i_samples)*sizeof(double)*2 > r->buffer_len) {
|
||||
int size = (r->filter_length + r->i_samples) * sizeof(double) * 2;
|
||||
|
||||
if(r->verbose){
|
||||
|
@ -882,3 +882,4 @@ GstPluginDesc plugin_desc = {
|
|||
"gstresample",
|
||||
plugin_init
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue