mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 06:53:41 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@90588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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))) {
|
||||
|
Reference in New Issue
Block a user