summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2010-08-15 21:02:04 +0200
committerLars Hanisch <dvb@flensrocker.de>2010-08-15 21:02:04 +0200
commit3ac6e06b2659bf60be8bf7e06e9b31794bfd34e2 (patch)
treeb3e455811f5fe51eb0767adf30c4138dbf37c0a6
parent750edcb1c4dcda46ba5b5c6930e99e6149887c0e (diff)
downloadvdr-plugin-pvrinput-3ac6e06b2659bf60be8bf7e06e9b31794bfd34e2.tar.gz
vdr-plugin-pvrinput-3ac6e06b2659bf60be8bf7e06e9b31794bfd34e2.tar.bz2
exchange constants with identifiers from videodev2.h
-rwxr-xr-xreader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/reader.c b/reader.c
index 9d4e152..340ace1 100755
--- a/reader.c
+++ b/reader.c
@@ -302,15 +302,15 @@ void cPvrReadThread::PesToTs(uint8_t *Data, uint32_t Length)
payload_length = Length - 9 - Data[8];
payload_data = Data + 9 + Data[8];
- if (memcmp(payload_data, "itv0", 4) == 0)
+ if (memcmp(payload_data, V4L2_MPEG_VBI_IVTV_MAGIC0, 4) == 0)
pos = 12;
- else if (memcmp(payload_data, "ITV0", 4) == 0)
+ else if (memcmp(payload_data, V4L2_MPEG_VBI_IVTV_MAGIC1, 4) == 0)
pos = 4;
else
return;
while (pos + 43 <= payload_length) {
- if ((payload_data[pos] & 0x0F) == 0x01) { //VBI_TYPE_TELETEXT
+ if ((payload_data[pos] & 0x0F) == V4L2_MPEG_VBI_IVTV_TELETEXT_B) {
ts_buffer[4 + ts_pos * 46] = 0x02; // data_unit_id
ts_buffer[5 + ts_pos * 46] = 0x2C; // data_unit_length
ts_buffer[6 + ts_pos * 46] = 0x00; // field_parity, line_offset