From bc7e4c2ef2c63b5e2042c8eff87314fa58ecf823 Mon Sep 17 00:00:00 2001 From: Paul Cadach <paul@odt.east.telecom.kz> Date: Wed, 14 Feb 2007 08:34:10 +0000 Subject: [PATCH] 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 --- codecs/codec_g722.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codecs/codec_g722.c b/codecs/codec_g722.c index 5398273471..e046b9337e 100644 --- a/codecs/codec_g722.c +++ b/codecs/codec_g722.c @@ -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, }; -- GitLab