From 93c30a12fd12cbe6b82868e5403c90b98fb9236e Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 1 Feb 2008 04:41:57 +0000 Subject: [PATCH] left over commit from tony's conf refactor git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7451 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_resample.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_resample.c b/src/switch_resample.c index 409fed4753..8e884f1406 100644 --- a/src/switch_resample.c +++ b/src/switch_resample.c @@ -77,9 +77,9 @@ SWITCH_DECLARE(switch_status_t) switch_resample_create(switch_audio_resampler_t switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Activate Resampler %d->%d %f\n", resampler->from_rate, resampler->to_rate, resampler->factor); resampler->from_size = resample_buffer(to_rate, from_rate, (uint32_t)from_size); - resampler->from = (float *) switch_core_alloc(pool, resampler->from_size); + resampler->from = (float *) switch_core_alloc(pool, resampler->from_size * sizeof(float)); resampler->to_size = resample_buffer(to_rate, from_rate, (uint32_t)to_size); ; - resampler->to = (float *) switch_core_alloc(pool, resampler->to_size); + resampler->to = (float *) switch_core_alloc(pool, resampler->to_size * sizeof(float)); *new_resampler = resampler; return SWITCH_STATUS_SUCCESS;