[Asterisk-cvs] asterisk/codecs codec_ilbc.c,1.6,1.7

markster at lists.digium.com markster at lists.digium.com
Thu Oct 14 01:15:24 CDT 2004


Update of /usr/cvsroot/asterisk/codecs
In directory mongoose.digium.com:/tmp/cvs-serv9772/codecs

Modified Files:
	codec_ilbc.c 
Log Message:
Update to new iLBC codec


Index: codec_ilbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/codec_ilbc.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- codec_ilbc.c	22 Jun 2004 18:49:00 -0000	1.6
+++ codec_ilbc.c	14 Oct 2004 05:15:47 -0000	1.7
@@ -3,11 +3,11 @@
  *
  * Translate between signed linear and Internet Low Bitrate Codec
  *
- * The iLBC code is from The IETF code base and is copyright GlobalSound, AB
+ * The iLBC code is from The IETF code base and is copyright The Internet Society (2004)
  * 
- * Copyright (C) 1999, Mark Spencer
+ * Copyright (C) 1999-2004, Digium, Inc.
  *
- * Mark Spencer <markster at linux-support.net>
+ * Mark Spencer <markster at digium.com>
  *
  * This program is free software, distributed under the terms of
  * the GNU General Public License
@@ -33,6 +33,8 @@
 #include "ilbc_slin_ex.h"
 
 #define USE_ILBC_ENHANCER	0
+#define ILBC_MS 			30
+/* #define ILBC_MS			20 */
 
 AST_MUTEX_DEFINE_STATIC(localuser_lock);
 static int localusecnt=0;
@@ -61,7 +63,7 @@
 	if (tmp) {
 		/* Shut valgrind up */
 		memset(&tmp->enc, 0, sizeof(tmp->enc));
-		initEncode(&tmp->enc);
+		initEncode(&tmp->enc, ILBC_MS);
 		tmp->tail = 0;
 		localusecnt++;
 	}
@@ -75,7 +77,7 @@
 	if (tmp) {
 		/* Shut valgrind up */
 		memset(&tmp->dec, 0, sizeof(tmp->dec));
-		initDecode(&tmp->dec, USE_ILBC_ENHANCER);
+		initDecode(&tmp->dec, ILBC_MS, USE_ILBC_ENHANCER);
 		tmp->tail = 0;
 		localusecnt++;
 	}




More information about the svn-commits mailing list