Commit b5ff5e22 authored by Fabrice Bellard's avatar Fabrice Bellard

rgb555 alpha extraction fix

Originally committed as revision 1810 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0469baf1
......@@ -1104,7 +1104,7 @@ static inline unsigned int bitcopy_n(unsigned int a, int n)
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)\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment