mpegts: fix NULL ptr bug
This commit is contained in:
parent
4ca4b8e706
commit
7efc74c119
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue