From 70cd552f0cdc275f67342ac533617edb4e02623f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 23 May 2025 10:13:34 -0400 Subject: [PATCH] MT#55283 int typing fixes Change-Id: Ie10561d4115a44d514205dc6f207734ccb6c2562 (cherry picked from commit 4ddfe23409d4aae32818e5a2ea77986bcc1354a0) --- daemon/codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/codec.c b/daemon/codec.c index 0063b2ebd..9ef733d56 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -3746,7 +3746,7 @@ static void __dtx_send_later(struct codec_timer *ct) { // inspect head packet and check TS, see if it's ready to be decoded ts = dtxp->packet ? dtxp->packet->ts : dtxb->head_ts; ts_diff = ts - dtxb->head_ts; - long long ts_diff_us = (long long) ts_diff * 1000000 / dtxb->clockrate; + long long ts_diff_us = ts_diff * 1000000LL / dtxb->clockrate; if (!dtxb->head_ts) ; // first packet @@ -3762,7 +3762,7 @@ static void __dtx_send_later(struct codec_timer *ct) { } 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); + dtxb->head_ts, ts, ts_diff_us / 1000); else if (ts_diff >= dtxb->tspp * 2) { ilogs(dtx, LOG_DEBUG, "First packet in DTX buffer not ready yet (packet TS %lu, " "DTX TS %lu, diff %li)",