mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-04 15:10:39 +00:00
Set alpha of palettes to 0xff.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
e91946ed23
commit
dbfdb288c1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user