summaryrefslogtreecommitdiff
path: root/postproc/swscale.c
diff options
context:
space:
mode:
authorFelix Bünemann <Felix.Buenemann@gmx.de>2001-10-17 00:29:07 +0000
committerFelix Bünemann <Felix.Buenemann@gmx.de>2001-10-17 00:29:07 +0000
commitd1530c64618e3a59ec9e3a82b270e777b4524029 (patch)
tree6615dbb6a1eb0f32cbcf6ac7aa6ad8a831ac3095 /postproc/swscale.c
parent62ac0b014df4df46bfc0169a718c8d3a1b585a83 (diff)
fix rgb/bgr for 15/16bpp
Originally committed as revision 2231 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale.c')
-rw-r--r--postproc/swscale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c
index 20eaa675b7..a1082a7bbe 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -103,11 +103,11 @@ static int s_last_ypos;
dest[2]=clip_table[((Y + yuvtab_40cf[V]) >>13)];
#else
unsigned short *d=dest;
- unsigned int r=clip_table[((Y + yuvtab_3343[U]) >>13)];
+ unsigned int b=clip_table[((Y + yuvtab_3343[U]) >>13)];
unsigned int g=clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)];
- unsigned int b=clip_table[((Y + yuvtab_40cf[V]) >>13)];
- d[0]=((r>>3)<<10)|((g>>3)<<5)|((b>>3)); // 15bpp
-// d[0]=((r>>3)<<11)|((g>>2)<<5)|((b>>3)); // 16bpp
+ unsigned int r=clip_table[((Y + yuvtab_40cf[V]) >>13)];
+// d[0]=((r>>3)<<10)|((g>>3)<<5)|((b>>3)); // 15bpp
+ d[0]=((r>>3)<<11)|((g>>2)<<5)|((b>>3)); // 16bpp
#endif
dest+=dstbpp;
}