mpegts: fix for PCR extraction (used by tsfile)
This commit is contained in:
parent
2e942e6a54
commit
30b3c0506c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue