Fix buffer allocation problem.

Original commit message from CVS:
Fix buffer allocation problem.
This commit is contained in:
David Schleef 2002-06-29 00:40:37 +00:00
parent c13333f9e9
commit 9c3c5b3b6e
2 changed files with 3 additions and 2 deletions

2
common

@ -1 +1 @@
Subproject commit 4dab76096cb84988dc2b6366cf5bd964fe5857d7
Subproject commit c6bd62c43f01b2012d81dfa61dd58777c41de07a

View file

@ -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
};