From 9ef594f0e82db3481630081041d346f1326aa8c4 Mon Sep 17 00:00:00 2001 From: voroshil Date: Wed, 29 Aug 2007 18:11:09 +0000 Subject: Simplify code by using FFSWAP git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24299 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_vbi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'stream') diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c index 5bb16424b7..7c812fc9bc 100644 --- a/stream/tvi_vbi.c +++ b/stream/tvi_vbi.c @@ -601,10 +601,7 @@ static void decode_page(tt_char* p,int lang,unsigned char* raw) if ((c&0x60)==0){ //control chars if(c>=0x08 && c<=0x09){//Flash/Steady - int tmp; - tmp=bg_color; - bg_color=fg_color; - fg_color=tmp; + FFSWAP(int,bg_color,fg_color); if(c==0x09){ p[i].fg=fg_color; p[i].bg=bg_color; -- cgit v1.2.3