aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorCédric Schieli <cschieli@gmail.com>2009-02-28 08:01:52 +0000
committerCédric Schieli <cschieli@gmail.com>2009-02-28 08:01:52 +0000
commitf8a138be5257f751ef7d3c6b7ab534c0434e90e7 (patch)
treedb7a168078a2473e859da7d43a0d964af5f0e323 /libswscale/swscale.c
parent5f59207d94115e61d5c401f5f03a3d2644fcb5c7 (diff)
downloadffmpeg-f8a138be5257f751ef7d3c6b7ab534c0434e90e7.tar.gz
When converting from a non alpha format to an alpha format, defaults
Originally committed as revision 28756 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 1fe421e0d6..7c335f1680 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -922,12 +922,12 @@ static inline void yuv2rgbXinC_full(SwsContext *c, int16_t *lumFilter, int16_t *
switch(c->dstFormat){
case PIX_FMT_ARGB:
dest++;
- aidx= 0;
+ aidx= -1;
case PIX_FMT_RGB24:
aidx--;
case PIX_FMT_RGBA:
YSCALE_YUV_2_RGBX_FULL_C(1<<21)
- dest[aidx]= 0;
+ dest[aidx]= 255;
dest[0]= R>>22;
dest[1]= G>>22;
dest[2]= B>>22;
@@ -936,12 +936,12 @@ static inline void yuv2rgbXinC_full(SwsContext *c, int16_t *lumFilter, int16_t *
break;
case PIX_FMT_ABGR:
dest++;
- aidx= 0;
+ aidx= -1;
case PIX_FMT_BGR24:
aidx--;
case PIX_FMT_BGRA:
YSCALE_YUV_2_RGBX_FULL_C(1<<21)
- dest[aidx]= 0;
+ dest[aidx]= 255;
dest[0]= B>>22;
dest[1]= G>>22;
dest[2]= R>>22;