diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-20 17:52:57 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-20 17:52:57 +0000 |
commit | 210df127ccadd53094a8c584bd51abd685705979 (patch) | |
tree | c4dce5eb2e58d25b2178cee3843f70deae79251e /main/rtp.c | |
parent | 5816dc54726bd3d281bbce720e6184e66aaf9a8f (diff) |
Put the speex packetization values back in but disable it when setting up the smoother.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70360 f38db490-d61c-443f-a65b-d21fe96a405b
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 41e231707..04b5c0d0c 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -2728,7 +2728,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))) { |