From 74cc8ff9420ee8c7396fb9e1867d6bc2121bb58e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 2 Apr 2025 13:04:21 -0400 Subject: [PATCH] MT#55283 reset time skew after correcting for it Change-Id: I4393339aa5ec696e1d80b555d265c6fdc4471fa2 --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index 91852e416..fe3703f3e 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2456,7 +2456,7 @@ void codec_output_rtp(struct media_packet *mp, struct codec_scheduler *csch, ts_diff_us / 1000, (ts_diff_us % 1000) / 100); timeval_add_usec(&p->ttq_entry.when, ts_diff_us); - csch->output_skew += ts_diff_us; + csch->output_skew = 0; csch->first_send_ts -= (long long) handler->dest_pt.clock_rate * ts_diff_us / 1000000; ts_diff_us = timeval_diff(&p->ttq_entry.when, &rtpe_now); // should be 0 now }