mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user