diff options
author | Jean-Francois Dionne <jf.dionne@nutaq.com> | 2017-03-06 13:44:23 -0500 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-04-27 10:14:59 +0000 |
commit | fce5b31b94702e61f036d646fce5ec10f67a43a3 (patch) | |
tree | 38e23d16fa6909e26b177c44a7bfa977773bbb1b | |
parent | b4bf603c9866cf8ed7c59b812fc84b3138bb4dda (diff) |
Fix RTP duration adjustment not done when speech resumes in DTX mode.
RTP jitter increases continuously because duration is not
updated when speech resumes in DTX mode.
Change-Id: Ib51ed95a449369222c957b3acebd9ce1f66c5435
-rw-r--r-- | src/common/l1sap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 57a858ce..6c509e3c 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -76,12 +76,8 @@ static uint32_t fn_ms_adj(uint32_t fn, const struct gsm_lchan *lchan) { uint32_t samples_passed, r; - /* don't adjust duration: - - when no DTX enabled at all - - for ONSET RTP packet to avoid timestamp gap with subsequent SPEECH - RTP packet*/ - if (lchan->rtp_tx_marker || - lchan->ts->trx->bts->dtxu == GSM48_DTX_SHALL_NOT_BE_USED) + /* don't adjust duration when DTX is not enabled */ + if (lchan->ts->trx->bts->dtxu == GSM48_DTX_SHALL_NOT_BE_USED) return GSM_RTP_DURATION; if (lchan->tch.last_fn != LCHAN_FN_DUMMY) { |