aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codec_g722.c
diff options
context:
space:
mode:
authorpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-14 08:34:10 +0000
committerpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-14 08:34:10 +0000
commit81d103d2633029bfe1e5e83dfdc05722b2f62f0d (patch)
treee2c96da413de6dbd3a829280802a5cd397dd08d8 /codecs/codec_g722.c
parent4debc4eeadfda64faf9ff3915f239918185f176a (diff)
I don't know how it worked earlier, but valgrind
produces core every time you try to load codec_g722. Fixed. ;-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54325 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_g722.c')
-rw-r--r--codecs/codec_g722.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/codecs/codec_g722.c b/codecs/codec_g722.c
index 539827347..e046b9337 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,
};