Fix iLBC with valgrind, add iLBC format from bkw_

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-04-22 03:34:13 +00:00
parent 17563e2929
commit a640df56e6
3 changed files with 258 additions and 1 deletions

View File

@@ -60,6 +60,8 @@ static struct ast_translator_pvt *lintoilbc_new(void)
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 @@ static struct ast_translator_pvt *ilbctolin_new(void)
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++;