[Freeswitch-svn] [commit] r7451 - freeswitch/trunk/src

Freeswitch SVN brian at freeswitch.org
Thu Jan 31 23:41:57 EST 2008


Author: brian
Date: Thu Jan 31 23:41:57 2008
New Revision: 7451

Modified:
   freeswitch/trunk/src/switch_resample.c

Log:
left over commit from tony's conf refactor

Modified: freeswitch/trunk/src/switch_resample.c
==============================================================================
--- freeswitch/trunk/src/switch_resample.c	(original)
+++ freeswitch/trunk/src/switch_resample.c	Thu Jan 31 23:41:57 2008
@@ -77,9 +77,9 @@
 	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;



More information about the Freeswitch-svn mailing list