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 7bf083b366
commit 7f07809cd9

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