Commit 97036053 authored by reimar's avatar reimar

Colours except background should not be transparent


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9940 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 032c9641
......@@ -74,6 +74,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
// read palette
for (i = 0; i < sub->rects[0].nb_colors; i++)
sub->rects[0].rgba_palette[i] = bytestream_get_be24(&buf);
// make all except background (first entry) non-transparent
for (i = 1; i < sub->rects[0].nb_colors; i++)
sub->rects[0].rgba_palette[i] |= 0xff000000;
// process RLE-compressed data
rlelen = FFMIN(rlelen, buf_end - buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment