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)