From 33ee65ee04dae97112be1207230890f7fb74a8cf Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 23 May 2025 10:18:57 -0400 Subject: [PATCH] MT#55283 use correct PT for clock rate Change-Id: Ibfc02b1a838aaf892c7d74b8dff07fd3a171be2c (cherry picked from commit 449018f0d1f0233ac0ce5a7eb9ef15e3a0f61420) --- daemon/codec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/codec.c b/daemon/codec.c index df37de600..fdbc3f491 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2292,8 +2292,7 @@ static int __handler_func_sequencer(struct media_packet *mp, struct transcode_pa if (ts_diff == 0 || ts_diff >= 0x80000000) break; - unsigned long long ts_diff_us = - (unsigned long long) ts_diff * 1000000 / h->dest_pt.clock_rate; + unsigned long long ts_diff_us = ts_diff * 1000000LL / h->source_pt.clock_rate; if (ts_diff_us >= 60000) { // arbitrary value packet = packet_sequencer_force_next_packet(seq); if (!packet)