1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Set RL2 palette opaque.

This commit is contained in:
Carl Eugen Hoyos 2011-11-12 20:15:56 +01:00
parent 9f9a1f424e
commit c99cd3e2e2

View File

@ -152,7 +152,7 @@ static av_cold int rl2_decode_init(AVCodecContext *avctx)
/** initialize palette */
for(i=0;i<AVPALETTE_COUNT;i++)
s->palette[i] = AV_RB24(&avctx->extradata[6 + i * 3]);
s->palette[i] = 0xFF << 24 | AV_RB24(&avctx->extradata[6 + i * 3]);
/** decode background frame if present */
back_size = avctx->extradata_size - EXTRADATA1_SIZE;