[Freeswitch-svn] [commit] r11101 - freeswitch/trunk/src

FreeSWITCH SVN brian at freeswitch.org
Thu Jan 8 19:28:52 PST 2009


Author: brian
Date: Thu Jan  8 21:28:52 2009
New Revision: 11101

Log:
avoid segfault when playing a 48k wav as a transfer ringback to an 8k ulaw channel

Modified:
   freeswitch/trunk/src/switch_core_file.c

Modified: freeswitch/trunk/src/switch_core_file.c
==============================================================================
--- freeswitch/trunk/src/switch_core_file.c	(original)
+++ freeswitch/trunk/src/switch_core_file.c	Thu Jan  8 21:28:52 2009
@@ -165,7 +165,7 @@
 				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);



More information about the Freeswitch-svn mailing list