diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-04-27 21:49:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-27 21:49:45 +0200 |
commit | dbfdb288c1921eeb9fef5bca20eee33da7fcdd71 (patch) | |
tree | c0b99795fee3fa4a48c8ed4af6a165bc58f5b261 /libavcodec/targa.c | |
parent | e91946ed23dfbb9a6341266020ed8475ec15697d (diff) | |
download | ffmpeg-dbfdb288c1921eeb9fef5bca20eee33da7fcdd71.tar.gz |
Set alpha of palettes to 0xff.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/targa.c')
-rw-r--r-- | libavcodec/targa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/targa.c b/libavcodec/targa.c index 5514304929..07173c7bc5 100644 --- a/libavcodec/targa.c +++ b/libavcodec/targa.c @@ -189,10 +189,10 @@ static int decode_frame(AVCodecContext *avctx, int r, g, b, t; int32_t *pal = ((int32_t*)p->data[1]) + first_clr; for(t = 0; t < colors; t++){ - r = *buf++; - g = *buf++; b = *buf++; - *pal++ = (b << 16) | (g << 8) | r; + g = *buf++; + r = *buf++; + *pal++ = (0xff<<24) | (r << 16) | (g << 8) | b; } p->palette_has_changed = 1; } |