summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-30 02:12:25 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-30 02:12:25 +0000
commitce2792fe74b5628c4ed7649c8bc6adb4bf1b6c66 (patch)
treea96452db136b49e2cc5fd61c8c179cd0244f0460 /stream
parent3a9bed720fcc0a967c04401a13cf2472192895e6 (diff)
downloadmpv-ce2792fe74b5628c4ed7649c8bc6adb4bf1b6c66.tar.bz2
mpv-ce2792fe74b5628c4ed7649c8bc6adb4bf1b6c66.tar.xz
Subtraction should be done after & operation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23928 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/tvi_vbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c
index 60330e7fe5..6088acfd14 100644
--- a/stream/tvi_vbi.c
+++ b/stream/tvi_vbi.c
@@ -529,7 +529,7 @@ static void decode_page(tt_char* p,int lang,unsigned char* raw)
* 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;