Browse Source

MT#55283 fix missing init of last_ts

Change-Id: I45b37f5a2abf11d2650be01ac8114b9c0efc7a63
pull/1945/head
Richard Fuchs 7 months ago
parent
commit
fdfd5c09c4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/codec.c

+ 3
- 0
daemon/codec.c View File

@ -2354,6 +2354,9 @@ static int __handler_func_sequencer(struct media_packet *mp, struct transcode_pa
} }
if (ch) { if (ch) {
if (!ch->csch.last_ts)
ch->csch.last_ts = packet->ts;
uint32_t ts_diff = 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 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 // multiple consecutive packets with same TS: this could be a compound packet, e.g. a large video frame, or


Loading…
Cancel
Save