changeset 29754:2fecfba6f36a

Fix teletext character set auto-detection. Patch by Francesco Lavra, francescolavra interfree it
author cehoyos
date Sat, 24 Oct 2009 13:19:20 +0000
parents 75f54a9e4160
children 3687c6de309f
files stream/tvi_vbi.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_vbi.c	Sat Oct 24 12:35:18 2009 +0000
+++ b/stream/tvi_vbi.c	Sat Oct 24 13:19:20 2009 +0000
@@ -1107,7 +1107,7 @@
     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);