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 | 7f07809cd9e54b35467b147f57b7904160ee6866 (patch) | |
tree | fabb51583fc00aa36ead8c41d34677038909bf7a | |
parent | 7bf083b366a73ff5981b7b4110b18e51cf30b603 (diff) | |
download | gstreamer-plugins-base-7f07809cd9e54b35467b147f57b7904160ee6866.tar.gz |
Fix buffer allocation problem.
Original commit message from CVS:
Fix buffer allocation problem.
-rw-r--r-- | gst-libs/gst/resample/resample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/resample/resample.c b/gst-libs/gst/resample/resample.c index 3d944843e..7ced0f54f 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 }; + |