diff options
author | Joshua Colp <jcolp@digium.com> | 2007-06-20 17:55:09 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-06-20 17:55:09 +0000 |
commit | a2b3357a9dcc6cf8ac9b96d1e786020982799bc5 (patch) | |
tree | e4049886b8036c555b42ff6356fc72fd78cca9ba /main/rtp.c | |
parent | 704c756c4a3ecf56c2add092862038983b069cae (diff) |
Merged revisions 70360 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r70360 | file | 2007-06-20 13:52:57 -0400 (Wed, 20 Jun 2007) | 2 lines
Put the speex packetization values back in but disable it when setting up the smoother.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/rtp.c')
-rw-r--r-- | main/rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c index 11561e254..66c26e71a 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -2848,7 +2848,7 @@ int ast_rtp_write(struct ast_rtp *rtp, struct ast_frame *_f) rtp->smoother = NULL; } - if (!rtp->smoother) { + if (!rtp->smoother && subclass != AST_FORMAT_SPEEX) { 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))) { |