mpegts: fix for PCR extraction (used by tsfile)

This commit is contained in:
Adam Sutton 2014-04-14 17:49:18 +01:00
parent 2e942e6a54
commit 30b3c0506c

View file

@ -452,7 +452,7 @@ mpegts_input_recv_packets
if (pcr && pcr_pid) {
uint8_t *tmp = tsb;
for (i = 0; i < p; i++) {
if (*pcr_pid == (((tmp[1] & 0x1f) << 8) | tmp[2]))
if (*pcr_pid == (((tmp[1] & 0x1f) << 8) | tmp[2]) || *pcr_pid == 0)
ts_recv_packet1(NULL, tmp, pcr, 0);
tmp += 188;
}