changeset 24169:6c2e562c873f

10l: "&" should be done after ">>"
author voroshil
date Sat, 25 Aug 2007 16:42:38 +0000
parents 77d5f53cc681
children 5d8075c4a2c2
files stream/tvi_vbi.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_vbi.c	Sat Aug 25 16:41:10 2007 +0000
+++ b/stream/tvi_vbi.c	Sat Aug 25 16:42:38 2007 +0000
@@ -842,7 +842,7 @@
     if (!priv->mag[magAddr].pt)
         priv->mag[magAddr].pt= malloc(sizeof(tt_page));
 
-    priv->mag[magAddr].lang=(d[7] & 0x7)>>1;
+    priv->mag[magAddr].lang=(d[7]>>1)&0x7;
     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);