diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-04-21 22:37:39 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-04-21 22:37:39 +0000 |
commit | b5ff5e22e95f6ad05c05a7ffad3d009b33227689 (patch) | |
tree | 94b85899b1d5c070a6440d64e85a8367d9093d3f | |
parent | 0469baf14f0bb7aecd75474fc47aef47f723b4e3 (diff) | |
download | ffmpeg-b5ff5e22e95f6ad05c05a7ffad3d009b33227689.tar.gz |
rgb555 alpha extraction fix
Originally committed as revision 1810 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/imgconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 7bbceeff9a..01c0415f81 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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)\ |