[MPlayer-cvslog] r29796 - trunk/stream/tvi_vbi.c

cehoyos subversion at mplayerhq.hu
Sat Oct 24 15:19:20 CEST 2009


Author: cehoyos
Date: Sat Oct 24 15:19:20 2009
New Revision: 29796

Log:
Fix teletext character set auto-detection.

Patch by Francesco Lavra, francescolavra interfree it

Modified:
   trunk/stream/tvi_vbi.c

Modified: trunk/stream/tvi_vbi.c
==============================================================================
--- trunk/stream/tvi_vbi.c	Sat Oct 24 14:35:18 2009	(r29795)
+++ trunk/stream/tvi_vbi.c	Sat Oct 24 15:19:20 2009	(r29796)
@@ -1107,7 +1107,7 @@ static int decode_pkt0(priv_vbi_t* priv,
     if(priv->primary_language)
         priv->mag[magAddr].pt->primary_lang=priv->primary_language;
     else
-        priv->mag[magAddr].pt->primary_lang= (d[7]&7)>>1;
+        priv->mag[magAddr].pt->primary_lang= (d[7]>>1)&7;
     priv->mag[magAddr].pt->secondary_lang=priv->secondary_language;
     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