changeset 1209:0aa744ab1c07 libavcodec

rgb555 alpha extraction fix
author bellard
date Mon, 21 Apr 2003 22:37:39 +0000
parents 0f37976aa436
children ede882dd601f
files imgconvert.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/imgconvert.c	Mon Apr 21 21:20:46 2003 +0000
+++ b/imgconvert.c	Mon Apr 21 22:37:39 2003 +0000
@@ -1104,7 +1104,7 @@
     r = bitcopy_n(v >> (10 - 3), 3);\
     g = bitcopy_n(v >> (5 - 3), 3);\
     b = bitcopy_n(v << 3, 3);\
-    a = bitcopy_n(v >> 15, 7);\
+    a = (-(v >> 15)) & 0xff;\
 }
 
 #define RGBA_OUT(d, r, g, b, a)\