diff options
| author | Lars Hanisch <dvb@flensrocker.de> | 2010-08-15 21:02:04 +0200 |
|---|---|---|
| committer | Lars Hanisch <dvb@flensrocker.de> | 2010-08-15 21:02:04 +0200 |
| commit | 3ac6e06b2659bf60be8bf7e06e9b31794bfd34e2 (patch) | |
| tree | b3e455811f5fe51eb0767adf30c4138dbf37c0a6 | |
| parent | 750edcb1c4dcda46ba5b5c6930e99e6149887c0e (diff) | |
| download | vdr-plugin-pvrinput-3ac6e06b2659bf60be8bf7e06e9b31794bfd34e2.tar.gz vdr-plugin-pvrinput-3ac6e06b2659bf60be8bf7e06e9b31794bfd34e2.tar.bz2 | |
exchange constants with identifiers from videodev2.h
| -rwxr-xr-x | reader.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
