Set alpha of palettes to 0xff.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Baptiste Coudurier 2011-04-27 21:49:45 +02:00 committed by Michael Niedermayer
parent e91946ed23
commit dbfdb288c1
4 changed files with 12 additions and 11 deletions

View file

@ -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;
}