From 30b3c0506cf1e958ff42a7e2e5adc4082138dbc9 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Mon, 14 Apr 2014 17:49:18 +0100 Subject: [PATCH] mpegts: fix for PCR extraction (used by tsfile) --- src/input/mpegts/mpegts_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/mpegts/mpegts_input.c b/src/input/mpegts/mpegts_input.c index fde85484..39fedb4d 100644 --- a/src/input/mpegts/mpegts_input.c +++ b/src/input/mpegts/mpegts_input.c @@ -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; }