From: Brian West Date: Fri, 9 Jan 2009 03:28:52 +0000 (+0000) Subject: avoid segfault when playing a 48k wav as a transfer ringback to an 8k ulaw channel X-Git-Tag: v1.0.3~796 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df2913511c394e9df5d55431c8a06703acafe81e;p=thirdparty%2Ffreeswitch.git avoid segfault when playing a 48k wav as a transfer ringback to an 8k ulaw channel git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11101 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_file.c b/src/switch_core_file.c index db438f1c48..cc3166133b 100644 --- a/src/switch_core_file.c +++ b/src/switch_core_file.c @@ -165,7 +165,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh, switch_assert(fh->buffer); } if (!fh->dbuf) { - fh->dbuflen = fh->resampler->to_len * 8; + fh->dbuflen = fh->resampler->to_len * 10; fh->dbuf = switch_core_alloc(fh->memory_pool, fh->dbuflen); } switch_assert(fh->resampler->to_len <= fh->dbuflen);