diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-25 16:39:02 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-25 16:39:02 +0000 |
commit | 74083dfe01dfa249cb9f5c1600c01508684fa20c (patch) | |
tree | 5f4d9beb82120b778c76a7847feddbf2a6c3e0d7 /stream | |
parent | 5606acf652a8655d541b5db56597a113b4b6bb64 (diff) | |
download | mpv-74083dfe01dfa249cb9f5c1600c01508684fa20c.tar.bz2 mpv-74083dfe01dfa249cb9f5c1600c01508684fa20c.tar.xz |
Language bits in teletext page header are
control bits C12-C14 (bits 2-4 of d[7]), not C11-C13 (bits 1-3).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24187 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/tvi_vbi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c index b4ab05b667..7317b411cc 100644 --- a/stream/tvi_vbi.c +++ b/stream/tvi_vbi.c @@ -842,7 +842,7 @@ static int decode_pkt0(priv_vbi_t* priv,unsigned char* data,int magAddr) if (!priv->mag[magAddr].pt) priv->mag[magAddr].pt= malloc(sizeof(tt_page)); - priv->mag[magAddr].lang= d[7] & 0x7; + priv->mag[magAddr].lang=(d[7] & 0x7)>>1; priv->mag[magAddr].pt->lang=priv->mag[magAddr].lang; priv->mag[magAddr].pt->subpagenum=(d[2]|(d[3]<<4)|(d[4]<<8)|(d[5]<<12))&0x3f7f; priv->mag[magAddr].pt->pagenum=(magAddr<<8) | d[0] | (d[1]<<4); |