From 8faaba5d643c420a3d7aab355177a12e3e1d9b3b 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 (cherry picked from commit fdfd5c09c4eabc81b60ece47acf0891b02793cbd) (cherry picked from commit ec6730d1adf66cc3417d1881831c3cef63061209) --- daemon/codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/codec.c b/daemon/codec.c index fde7becf3..df37de600 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2307,6 +2307,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