From 50733ab7a1f6e335f5da596e6a6f44379d18273c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 13 Jun 2010 12:53:20 +0000 Subject: [PATCH] Workaround for ITV HD (which has incorrect PMT) --- src/psi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/psi.c b/src/psi.c index e808d5b1..60b0c2c4 100644 --- a/src/psi.c +++ b/src/psi.c @@ -592,6 +592,13 @@ psi_parse_pmt(th_transport_t *t, const uint8_t *ptr, int len, int chksvcid, len -= dlen; ptr += dlen; dllen -= dlen; } + + if(hts_stream_type == SCT_UNKNOWN && estype == 0x06 && + pid == 3401 && t->tht_dvb_service_id == 10510) { + // Workaround for ITV HD + hts_stream_type = SCT_H264; + } + if(hts_stream_type != SCT_UNKNOWN) { if((st = transport_stream_find(t, pid)) == NULL) {