From a2af25721694e3f7edd3eb51fd4c0fb2df39b92e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 28 Apr 2021 08:31:52 -0400 Subject: [PATCH] TT#98901 fix DTX TS reset detection Change-Id: Ide2d7b2f9fccdd6475969ef5588acbc312ab588a --- daemon/codec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/codec.c b/daemon/codec.c index 7eb308846..caf6ffe70 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2450,8 +2450,9 @@ static void __dtx_send_later(struct timerthread_queue *ttq, void *p) { ; // first packet else if (ts_diff < 0) ilogs(dtx, LOG_DEBUG, "DTX timestamp reset (from %lu to %lu)", dtxb->head_ts, ts); - else if (ts_diff_us > 10000) - ilogs(dtx, LOG_DEBUG, "DTX timestamp reset (from %lu to %lu)", dtxb->head_ts, ts); + else if (ts_diff_us > MAX(20 * rtpe_config.dtx_delay, 200000)) + ilogs(dtx, LOG_DEBUG, "DTX timestamp reset (from %lu to %lu = %lli ms)", + dtxb->head_ts, ts, ts_diff_us); else if (ts_diff > dtxb->tspp) { ilogs(dtx, LOG_DEBUG, "First packet in DTX buffer not ready yet (packet TS %lu, " "DTX TS %lu, diff %li)",