]> 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 16:41:19 +0000 (21:41 +0500)
src/switch_ivr_play_say.c

index 3739e25308597820d2782713e0cea388fdbc51d8..22bc84a7ddc18d2f83e03725d9bf13edb2f0d5d5 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;
                }