summaryrefslogtreecommitdiff
path: root/teletext.c
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2008-12-13 11:01:34 +0100
committerTobias Grimm <tobias@e-tobi.loc>2008-12-13 11:01:34 +0100
commite5d1aacca2020e63dbaf320ba8b1de61746ad410 (patch)
tree0e267f716f34700a439971926fdc79b0172a0f38 /teletext.c
parent88012c106b8310507e872c72544f423433bac5d2 (diff)
downloadvdr-plugin-ttxtsubs-0.0.5pre1.tar.gz
vdr-plugin-ttxtsubs-0.0.5pre1.tar.bz2
- New features:v0.0.5pre1
- More than one language can be chosen, they are used in order of preference - Handles languages with two ISO 639-2 identifiers (as ger/deu, fre/fra) - Subtitles can now be turned on or off - Optional main menu alternative for easy access - Selectable vertical position of text for 4:3/Anamorphic or Letterbox - Left, Center or Right horizontal position of text - Remapping option for those French channels that incorrectly sends teletext page numbers in decimal instead of hexadecimal. Very moderate remapping done at the moment, I hope it is enough. - Subtitles are now recorded with their PTS (timestamps). Not that the timestamps are completely wrong on some channels, this may confuse uncareful subtitle extracting software. - Included patch for VDR 1.3.5 - untested! - Bugs fixed: - Fixed a net-to-host-order bug in the si parser that could make it incorrectly think that there are no subtitles on a channel. Thanks to Nicolas "tarass"! - Fixed a bit swapping bug causing incorrect character encoding for some languages. Thanks to Nicolas "tarass"!
Diffstat (limited to 'teletext.c')
-rw-r--r--teletext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/teletext.c b/teletext.c
index 13ea178..a99b7ec 100644
--- a/teletext.c
+++ b/teletext.c
@@ -484,7 +484,7 @@ ttxt_packet_in(int data_unit_id, int mag, int pack, uint8_t *data)
//if(data[7] & 0x02) // Magazine Serial
p.national_charset =
- ((data[7] & 0x80) >> 5) + ((data[7] & 0x20) >> 4) + ((data[7] & 0x08) >> 3);
+ ((data[7] & 0x80) >> 7) + ((data[7] & 0x20) >> 4) + ((data[7] & 0x08) >> 1);
valid = 1;