From 62e9fa7a36aad5263ca8255545e4f3ed62285cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 21 Nov 2007 12:43:16 +0000 Subject: [PATCH] dont crash if pkt == NULL --- tsmux.c | 2 ++ 1 file changed, 2 insertions(+) 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? */