]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5807 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 20 Sep 2013 16:41:19 +0000 (21:41 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 20 Sep 2013 15:47:39 +0000 (10:47 -0500)
src/switch_ivr_play_say.c

index 7222c43533ffd212ad50309557e0af63125d1748..ca0d01fcc758fd4e9063f40c203c1db268edb5fd 100644 (file)
@@ -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;
                }