diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-11-29 02:14:13 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-11-29 02:14:13 +0000 |
commit | 69399315991bf7f9679e2d9b22f42415653cfc04 (patch) | |
tree | e3349bbc37c69394a11f4358e9af9f7a5d2a2329 /codecs/codec_a_mu.c | |
parent | 2d459a804c0512bbceafe63a934770c2aa3f5edd (diff) |
Version 0.3.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@556 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_a_mu.c')
-rwxr-xr-x | codecs/codec_a_mu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/codecs/codec_a_mu.c b/codecs/codec_a_mu.c index c7d52b447..d7d6ff11e 100755 --- a/codecs/codec_a_mu.c +++ b/codecs/codec_a_mu.c @@ -125,7 +125,7 @@ alawtoulaw_frameout (struct ast_translator_pvt *pvt) tmp->f.frametype = AST_FRAME_VOICE; tmp->f.subclass = AST_FORMAT_ULAW; tmp->f.datalen = tmp->tail; - tmp->f.timelen = tmp->tail / 8; + tmp->f.samples = tmp->tail; tmp->f.mallocd = 0; tmp->f.offset = AST_FRIENDLY_OFFSET; tmp->f.src = __PRETTY_FUNCTION__; @@ -172,7 +172,7 @@ ulawtoalaw_frameout (struct ast_translator_pvt *pvt) if (tmp->tail) { tmp->f.frametype = AST_FRAME_VOICE; tmp->f.subclass = AST_FORMAT_ALAW; - tmp->f.timelen = tmp->tail / 8; + tmp->f.samples = tmp->tail; tmp->f.mallocd = 0; tmp->f.offset = AST_FRIENDLY_OFFSET; tmp->f.src = __PRETTY_FUNCTION__; @@ -195,7 +195,7 @@ alawtoulaw_sample () f.frametype = AST_FRAME_VOICE; f.subclass = AST_FORMAT_ALAW; f.datalen = sizeof (ulaw_slin_ex); - f.timelen = sizeof(ulaw_slin_ex) / 8; + f.samples = sizeof(ulaw_slin_ex); f.mallocd = 0; f.offset = 0; f.src = __PRETTY_FUNCTION__; @@ -210,7 +210,7 @@ ulawtoalaw_sample () f.frametype = AST_FRAME_VOICE; f.subclass = AST_FORMAT_ULAW; f.datalen = sizeof (ulaw_slin_ex); - f.timelen = sizeof(ulaw_slin_ex) / 8; + f.samples = sizeof(ulaw_slin_ex); f.mallocd = 0; f.offset = 0; f.src = __PRETTY_FUNCTION__; |