From fdfd5c09c4eabc81b60ece47acf0891b02793cbd Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 23 May 2025 10:08:20 -0400 Subject: [PATCH] MT#55283 fix missing init of last_ts Change-Id: I45b37f5a2abf11d2650be01ac8114b9c0efc7a63 --- daemon/codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/codec.c b/daemon/codec.c index 47e2ac089..e65244805 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2354,6 +2354,9 @@ static int __handler_func_sequencer(struct media_packet *mp, struct transcode_pa } if (ch) { + if (!ch->csch.last_ts) + ch->csch.last_ts = packet->ts; + uint32_t ts_diff = ch->csch.last_ts - packet->ts; if (ts_diff < 0x80000000) { // ch->last_ts >= packet->ts // multiple consecutive packets with same TS: this could be a compound packet, e.g. a large video frame, or