[Asterisk-cvs] asterisk/codecs codec_ilbc.c,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Wed Apr 21 23:29:30 CDT 2004


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

Modified Files:
	codec_ilbc.c 
Log Message:
Fix iLBC with valgrind, add iLBC format from bkw_


Index: codec_ilbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/codec_ilbc.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- codec_ilbc.c	13 Aug 2003 15:25:16 -0000	1.3
+++ codec_ilbc.c	22 Apr 2004 03:34:13 -0000	1.4
@@ -60,6 +60,8 @@
 	struct ilbc_coder_pvt *tmp;
 	tmp = malloc(sizeof(struct ilbc_coder_pvt));
 	if (tmp) {
+		/* Shut valgrind up */
+		memset(&tmp->enc, 0, sizeof(tmp->enc));
 		initEncode(&tmp->enc);
 		tmp->tail = 0;
 		localusecnt++;
@@ -72,6 +74,8 @@
 	struct ilbc_coder_pvt *tmp;
 	tmp = malloc(sizeof(struct ilbc_coder_pvt));
 	if (tmp) {
+		/* Shut valgrind up */
+		memset(&tmp->dec, 0, sizeof(tmp->dec));
 		initDecode(&tmp->dec, USE_ILBC_ENHANCER);
 		tmp->tail = 0;
 		localusecnt++;




More information about the svn-commits mailing list