aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-03 20:05:42 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-03 20:05:42 +0000
commitf39aec20d572033e9bd2f737883ecfce26cad0c0 (patch)
tree5eebbc917cd14deadf65095f12afa7d459f7310a /main/rtp.c
parentef693b474008c88fce39d498608687a5fc749346 (diff)
Do not create a smoother for G723.1 frames, they need to be left alone to their native 20/24 byte size.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@90588 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 7885a5778..60341ac9d 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -2748,7 +2748,7 @@ int ast_rtp_write(struct ast_rtp *rtp, struct ast_frame *_f)
rtp->smoother = NULL;
}
- if (!rtp->smoother && subclass != AST_FORMAT_SPEEX) {
+ if (!rtp->smoother && subclass != AST_FORMAT_SPEEX && subclass != AST_FORMAT_G723_1) {
struct ast_format_list fmt = ast_codec_pref_getsize(&rtp->pref, subclass);
if (fmt.inc_ms) { /* if codec parameters is set / avoid division by zero */
if (!(rtp->smoother = ast_smoother_new((fmt.cur_ms * fmt.fr_len) / fmt.inc_ms))) {