Put the speex packetization values back in but disable it when setting up the smoother.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-06-20 17:52:57 +00:00
parent 9c76e929c9
commit 00a80bcb7d
2 changed files with 2 additions and 2 deletions

View File

@@ -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))) {