From eed868af6cd104ab71fca99e2f039fc78238f4c6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 27 Mar 2013 13:52:03 -0500 Subject: [PATCH] FS-5230 --resolve this was actually a bug in the -1 val in send_silence_when_idle --- src/switch_resample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_resample.c b/src/switch_resample.c index 6722d6f448..9e7c07117a 100644 --- a/src/switch_resample.c +++ b/src/switch_resample.c @@ -191,7 +191,7 @@ SWITCH_DECLARE(void) switch_generate_sln_silence(int16_t *data, uint32_t samples assert(divisor); if (divisor == (uint32_t)-1) { - memset(data, 0, sizeof(*data)); + memset(data, 0, samples * 2); return; }