Commit aeaea3c2 authored by David Schleef's avatar David Schleef
Browse files

Fix buffer allocation problem.

Original commit message from CVS:
Fix buffer allocation problem.
parent 6171b449
common @ c6bd62c4
Subproject commit 4dab76096cb84988dc2b6366cf5bd964fe5857d7 Subproject commit c6bd62c43f01b2012d81dfa61dd58777c41de07a
...@@ -165,7 +165,7 @@ void resample_scale(resample_t * r, void *i_buf, unsigned int i_size) ...@@ -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); 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; int size = (r->filter_length + r->i_samples) * sizeof(double) * 2;
if(r->verbose){ if(r->verbose){
...@@ -882,3 +882,4 @@ GstPluginDesc plugin_desc = { ...@@ -882,3 +882,4 @@ GstPluginDesc plugin_desc = {
"gstresample", "gstresample",
plugin_init plugin_init
}; };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment