Author: anthm Date: Tue Dec 18 12:43:38 2007 New Revision: 6868 Modified: freeswitch/trunk/src/switch_ivr_play_say.c Log: opts Modified: freeswitch/trunk/src/switch_ivr_play_say.c ============================================================================== --- freeswitch/trunk/src/switch_ivr_play_say.c (original) +++ freeswitch/trunk/src/switch_ivr_play_say.c Tue Dec 18 12:43:38 2007 @@ -686,7 +686,7 @@ const char *timer_name; const char *prebuf; - switch_zmalloc(abuf, FILE_STARTSAMPLES); + switch_zmalloc(abuf, FILE_STARTSAMPLES * sizeof(*abuf)); channel = switch_core_session_get_channel(session); switch_assert(channel != NULL); @@ -925,6 +925,9 @@ } if (switch_test_flag(fh, SWITCH_FILE_PAUSE)) { + if (framelen > FILE_STARTSAMPLES) { + framelen = FILE_STARTSAMPLES; + } memset(abuf, 0, framelen); olen = ilen; do_speed = 0;
participants (1)
-
Freeswitch SVN