aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-03 20:07:34 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-03 20:07:34 +0000
commit0e8545b0dc23b50a992acbd57f8160c0241789b4 (patch)
tree4b5ce2d865e6986b128d35d2c0cfc6d900b2d0bb /main/rtp.c
parent0382b41448a4e29bd268898e1026558f0042fb9a (diff)
Merged revisions 90588 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r90588 | file | 2007-12-03 16:05:42 -0400 (Mon, 03 Dec 2007) | 2 lines 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/trunk@90589 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 87630f6e0..97bbe59fc 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -3119,7 +3119,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))) {