dont crash if pkt == NULL
This commit is contained in:
parent
080e5f36b5
commit
62e9fa7a36
1 changed files with 2 additions and 0 deletions
2
tsmux.c
2
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? */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue