From 235a7c5683242295a5b9a86d694a896dab4ff13b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 20 Sep 2013 21:41:19 +0500 Subject: [PATCH] FS-5807 --resolve --- src/switch_ivr_play_say.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 3739e25308..22bc84a7dd 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -1255,7 +1255,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess if (!abuf) { - switch_zmalloc(abuf, FILE_STARTSAMPLES * sizeof(*abuf)); + switch_zmalloc(abuf, FILE_STARTSAMPLES * sizeof(*abuf) * fh->channels); write_frame.data = abuf; write_frame.buflen = FILE_STARTSAMPLES; } -- 2.47.3