[asterisk-commits] file: trunk r70361 - in /trunk: ./ main/frame.c main/rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 20 12:55:09 CDT 2007


Author: file
Date: Wed Jun 20 12:55:09 2007
New Revision: 70361

URL: http://svn.digium.com/view/asterisk?view=rev&rev=70361
Log:
Merged revisions 70360 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r70360 | file | 2007-06-20 13:52:57 -0400 (Wed, 20 Jun 2007) | 2 lines

Put the speex packetization values back in but disable it when setting up the smoother.

........

Modified:
    trunk/   (props changed)
    trunk/main/frame.c
    trunk/main/rtp.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/frame.c
URL: http://svn.digium.com/view/asterisk/trunk/main/frame.c?view=diff&rev=70361&r1=70360&r2=70361
==============================================================================
--- trunk/main/frame.c (original)
+++ trunk/main/frame.c Wed Jun 20 12:55:09 2007
@@ -113,7 +113,7 @@
 	{ 1, AST_FORMAT_SLINEAR, "slin", "16 bit Signed Linear PCM", 160, 10, 70, 10, 20, AST_SMOOTHER_FLAG_BE },	/*!< 7 */
 	{ 1, AST_FORMAT_LPC10, "lpc10", "LPC10", 7, 20, 20, 20, 20 },		/*!<  8: codec_lpc10.c */ 
 	{ 1, AST_FORMAT_G729A, "g729", "G.729A", 10, 10, 230, 10, 20, AST_SMOOTHER_FLAG_G729 },	/*!<  9: Binary commercial distribution */
-	{ 1, AST_FORMAT_SPEEX, "speex", "SpeeX"},		/*!< 10: codec_speex.c */
+	{ 1, AST_FORMAT_SPEEX, "speex", "SpeeX", 10, 10, 60, 10, 20 },		/*!< 10: codec_speex.c */
 	{ 1, AST_FORMAT_ILBC, "ilbc", "iLBC", 50, 30, 30, 30, 30 },		/*!< 11: codec_ilbc.c */ /* inc=30ms - workaround */
 	{ 1, AST_FORMAT_G726_AAL2, "g726aal2", "G.726 AAL2", 40, 10, 300, 10, 20 },	/*!<  12: codec_g726.c */
 	{ 1, AST_FORMAT_G722, "g722", "G722"},					/*!< 13 */

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?view=diff&rev=70361&r1=70360&r2=70361
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Wed Jun 20 12:55:09 2007
@@ -2848,7 +2848,7 @@
 		rtp->smoother = NULL;
 	}
 
-	if (!rtp->smoother) {
+	if (!rtp->smoother && subclass != AST_FORMAT_SPEEX) {
 		struct ast_format_list fmt = ast_codec_pref_getsize(&rtp->pref, subclass);
 		if (fmt.inc_ms) { /* if codec parameters is set / avoid division by zero */
 			if (!(rtp->smoother = ast_smoother_new((fmt.cur_ms * fmt.fr_len) / fmt.inc_ms))) {




More information about the asterisk-commits mailing list