mpegts: fix NULL ptr bug

This commit is contained in:
Adam Sutton 2013-04-29 09:38:32 +01:00
parent 4ca4b8e706
commit 7efc74c119

View file

@ -200,7 +200,7 @@ ts_recv_packet1(mpegts_service_t *t, const uint8_t *tsb, int64_t *pcrp)
pcr |= (uint64_t)tsb[8] << 9;
pcr |= (uint64_t)tsb[9] << 1;
pcr |= ((uint64_t)tsb[10] >> 7) & 0x01;
if (*pcrp) *pcrp = pcr;
if (pcrp) *pcrp = pcr;
}
/* Nothing - special case for tsfile to get PCR */