diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-29 18:11:09 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-29 18:11:09 +0000 |
commit | 9ef594f0e82db3481630081041d346f1326aa8c4 (patch) | |
tree | 06c6319dba237c2fa34139dd9a2af6695d301e62 /stream | |
parent | 23d80af5c6ef4ae4feb1beff5a4bfe2c3f90f57c (diff) | |
download | mpv-9ef594f0e82db3481630081041d346f1326aa8c4.tar.bz2 mpv-9ef594f0e82db3481630081041d346f1326aa8c4.tar.xz |
Simplify code by using FFSWAP
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24299 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/tvi_vbi.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; |