summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-29 18:11:09 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-29 18:11:09 +0000
commit9ef594f0e82db3481630081041d346f1326aa8c4 (patch)
tree06c6319dba237c2fa34139dd9a2af6695d301e62 /stream
parent23d80af5c6ef4ae4feb1beff5a4bfe2c3f90f57c (diff)
downloadmpv-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.c5
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;