diff options
author | David Schleef <ds@schleef.org> | 2002-06-29 00:40:37 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2002-06-29 00:40:37 +0000 |
commit | aeaea3c248a189e9772b9acc468883ca95e56be7 (patch) | |
tree | 98188fb3c5bcfb172223cab36fec2a7b6a4f2dee | |
parent | 6171b4498aa8436aa8685670e5635cf273a4354b (diff) | |
download | gst-plugins-bad-aeaea3c248a189e9772b9acc468883ca95e56be7.tar.gz gst-plugins-bad-aeaea3c248a189e9772b9acc468883ca95e56be7.tar.bz2 gst-plugins-bad-aeaea3c248a189e9772b9acc468883ca95e56be7.zip |
Fix buffer allocation problem.
Original commit message from CVS:
Fix buffer allocation problem.
m--------- | common | 0 | ||||
-rw-r--r-- | gst-libs/gst/resample/resample.c | 3 |
2 files changed, 2 insertions, 1 deletions
diff --git a/common b/common -Subproject 4dab76096cb84988dc2b6366cf5bd964fe5857d +Subproject c6bd62c43f01b2012d81dfa61dd58777c41de07 diff --git a/gst-libs/gst/resample/resample.c b/gst-libs/gst/resample/resample.c index 3d944843..7ced0f54 100644 --- a/gst-libs/gst/resample/resample.c +++ b/gst-libs/gst/resample/resample.c @@ -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 }; + |