Skip to content
Snippets Groups Projects
Commit bc7e4c2e authored by Paul Cadach's avatar Paul Cadach
Browse files

I don't know how it worked earlier, but valgrind

produces core every time you try to load codec_g722.

Fixed. ;-)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8470ee5c
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ static struct ast_frame *g722tolin_sample(void)
.frametype = AST_FRAME_VOICE,
.subclass = AST_FORMAT_G722,
.datalen = sizeof(g722_slin_ex),
.samples = sizeof(g722_slin_ex),
.samples = sizeof(g722_slin_ex) / sizeof(g722_slin_ex[0]),
.src = __PRETTY_FUNCTION__,
.data = g722_slin_ex,
};
......@@ -131,7 +131,7 @@ static struct ast_frame *lintog722_sample (void)
.frametype = AST_FRAME_VOICE,
.subclass = AST_FORMAT_SLINEAR,
.datalen = sizeof(slin_g722_ex),
.samples = sizeof(slin_g722_ex),
.samples = sizeof(slin_g722_ex) / sizeof(slin_g722_ex[0]),
.src = __PRETTY_FUNCTION__,
.data = slin_g722_ex,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment