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

voroshil subversion at mplayerhq.hu
Mon Jul 30 04:12:25 CEST 2007


Author: voroshil
Date: Mon Jul 30 04:12:25 2007
New Revision: 23928

Log:
Substraction should be done after & operation



Modified:
   trunk/stream/tvi_vbi.c

Modified: trunk/stream/tvi_vbi.c
==============================================================================
--- trunk/stream/tvi_vbi.c	(original)
+++ trunk/stream/tvi_vbi.c	Mon Jul 30 04:12:25 2007
@@ -529,7 +529,7 @@ static void decode_page(tt_char* p,int l
  * background thread to top line of current page). Displays "No teletext"
  * string if no vbi data available.
  */
-#define PRINT_HEX(dp,i,h) dp[i].unicode=((h)&0xf)>9?'A'+((h-10)&0xf):'0'+((h)&0xf)
+#define PRINT_HEX(dp,i,h) dp[i].unicode=((h)&0xf)>9?'A'+((h)&0xf)-10:'0'+((h)&0xf)
 static void prepare_visible_page(priv_vbi_t* priv){
     tt_page *pg,*curr_pg;
     unsigned char *p;



More information about the MPlayer-cvslog mailing list