diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 22:01:43 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 22:01:43 +0000 |
commit | 40c81526fe28e001672881d047899898788ea5de (patch) | |
tree | 66acd0a027c0de24d6f46bd19c5ea3b3065017c7 /main | |
parent | bca8e89c10ef6ad97c6aa207f56f4b39688808fb (diff) |
fix bytesize to 5.3kb for g723 codec and add support for multimode of tc400p
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47586 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/frame.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/frame.c b/main/frame.c index 899129364..73f2e3d15 100644 --- a/main/frame.c +++ b/main/frame.c @@ -102,7 +102,7 @@ struct ast_smoother { /*! \brief Definition of supported media formats (codecs) */ static struct ast_format_list AST_FORMAT_LIST[] = { /*!< Bit number: comment - Bit numbers are hard coded in show_codec() */ - { 1, AST_FORMAT_G723_1 , "g723" , "G.723.1", 24, 30, 300, 30, 30 }, /*!< 1 */ + { 1, AST_FORMAT_G723_1 , "g723" , "G.723.1", 20, 30, 300, 30, 30 }, /*!< 1 */ { 1, AST_FORMAT_GSM, "gsm" , "GSM", 33, 20, 300, 20, 20 }, /*!< 2: codec_gsm.c */ { 1, AST_FORMAT_ULAW, "ulaw", "G.711 u-law", 80, 10, 150, 10, 20 }, /*!< 3: codec_ulaw.c */ { 1, AST_FORMAT_ALAW, "alaw", "G.711 A-law", 80, 10, 150, 10, 20 }, /*!< 4: codec_alaw.c */ @@ -1377,6 +1377,9 @@ int ast_codec_get_len(int format, int samples) /* XXX Still need speex, g723, and lpc10 XXX */ switch(format) { + case AST_FORMAT_G723_1: + len = (samples / 240) * 20; + break; case AST_FORMAT_ILBC: len = (samples / 240) * 50; break; |