[MPlayer-cvslog] r24299 - trunk/stream/tvi_vbi.c
voroshil
subversion at mplayerhq.hu
Wed Aug 29 20:11:09 CEST 2007
Author: voroshil
Date: Wed Aug 29 20:11:09 2007
New Revision: 24299
Log:
Simplify code by using FFSWAP
Modified:
trunk/stream/tvi_vbi.c
Modified: trunk/stream/tvi_vbi.c
==============================================================================
--- trunk/stream/tvi_vbi.c (original)
+++ trunk/stream/tvi_vbi.c Wed Aug 29 20:11:09 2007
@@ -601,10 +601,7 @@ static void decode_page(tt_char* p,int l
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;
More information about the MPlayer-cvslog
mailing list