MT#55283 fix missing init of last_ts

Change-Id: I45b37f5a2abf11d2650be01ac8114b9c0efc7a63
(cherry picked from commit fdfd5c09c4)
(cherry picked from commit ec6730d1ad)
mr13.3.1
Richard Fuchs 6 months ago
parent bc2c90f8c7
commit 8faaba5d64

@ -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

Loading…
Cancel
Save