summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2010-03-14 23:18:56 +0100
committerLars Hanisch <dvb@flensrocker.de>2010-03-14 23:34:51 +0100
commit5807f50dbe66ddc19fa36d3f4a5f3645a05dab42 (patch)
tree8b813ef684850851c69ef8474c9cdc5faa487553
parentda4e4031e6af413d2d4bd400c8a66a5bdc36ea02 (diff)
downloadvdr-plugin-pvrinput-5807f50dbe66ddc19fa36d3f4a5f3645a05dab42.tar.gz
vdr-plugin-pvrinput-5807f50dbe66ddc19fa36d3f4a5f3645a05dab42.tar.bz2
PMT: extend teletext ES info with descriptor tag 0x56
On the basis of this descriptor tag vdr recognize the teletext packets. Otherwise the teletext PID will be removed from the channel.
-rw-r--r--reader.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/reader.c b/reader.c
index d7bc7c5..f761f5b 100644
--- a/reader.c
+++ b/reader.c
@@ -40,12 +40,12 @@ const unsigned char kPAT[TS_SIZE] =
const unsigned char kPMT[TS_SIZE] =
{
- 0x47, 0x40, 0x84, 0x10, 0x00, 0x02, 0xb0, 0x22,
+ 0x47, 0x40, 0x84, 0x10, 0x00, 0x02, 0xb0, 0x24,
0x00, 0x01, 0xc1, 0x00, 0x00, 0xe0, 0x65, 0xf0,
0x00, 0x02, 0xe1, 0x2d, 0xf0, 0x00, 0x04, 0xe1,
0x2c, 0xf0, 0x06, 0x0a, 0x04, 0x00, 0x00, 0x00,
- 0x01, 0x06, 0xe1, 0x31, 0xf0, 0x00, 0xcc, 0x32,
- 0xcc, 0x32, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+ 0x01, 0x06, 0xe1, 0x31, 0xf0, 0x02, 0x56, 0x00,
+ 0xcc, 0x32, 0xcc, 0x32, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
@@ -498,11 +498,11 @@ void cPvrReadThread::Action(void) {
memcpy(pmt_buffer, kPMT, TS_SIZE);
pmt_buffer[8] = (sid >> 8) & 0xFF;
pmt_buffer[9] = sid & 0xFF;
- crc = SI::CRC32::crc32((const char *)(pmt_buffer + 5), 33, 0xFFFFFFFF);
- pmt_buffer[38] = crc >> 24;
- pmt_buffer[39] = crc >> 16;
- pmt_buffer[40] = crc >> 8;
- pmt_buffer[41] = crc;
+ crc = SI::CRC32::crc32((const char *)(pmt_buffer + 5), 35, 0xFFFFFFFF);
+ pmt_buffer[40] = crc >> 24;
+ pmt_buffer[41] = crc >> 16;
+ pmt_buffer[42] = crc >> 8;
+ pmt_buffer[43] = crc;
}
}
retry: