[MPlayer-cvslog] r24187 - trunk/stream/tvi_vbi.c
voroshil
subversion at mplayerhq.hu
Sat Aug 25 18:39:02 CEST 2007
Author: voroshil
Date: Sat Aug 25 18:39:02 2007
New Revision: 24187
Log:
Language bits in teletext page header are
control bits C12-C14 (bits 2-4 of d[7]), not C11-C13 (bits 1-3).
Modified:
trunk/stream/tvi_vbi.c
Modified: trunk/stream/tvi_vbi.c
==============================================================================
--- trunk/stream/tvi_vbi.c (original)
+++ trunk/stream/tvi_vbi.c Sat Aug 25 18:39:02 2007
@@ -842,7 +842,7 @@ static int decode_pkt0(priv_vbi_t* priv,
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);
More information about the MPlayer-cvslog
mailing list