Set alpha of palettes to 0xff.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e91946ed23
commit
dbfdb288c1
4 changed files with 12 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue