summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/resample/resample.c3
1 files changed, 2 insertions, 1 deletions
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
};
+