diff --git a/tsmux.c b/tsmux.c index b4c5afef..8d61f843 100644 --- a/tsmux.c +++ b/tsmux.c @@ -369,6 +369,8 @@ ts_mux_packet(th_muxer_t *tm, int64_t pcr, uint8_t *outbuf, int maxblocks) pkt = tms->tms_curpkt; + if(pkt == NULL) + continue; /* Do we need to send a new PCR update? */