Skip to content
Snippets Groups Projects
Commit d6e14e24 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

Set Discworld II BMV palette opaque.

parent 3fd9f089
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac ...@@ -219,7 +219,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
for (i = 0; i < 256; i++) for (i = 0; i < 256; i++)
c->pal[i] = bytestream_get_be24(&c->stream); c->pal[i] = 0xFF << 24 | bytestream_get_be24(&c->stream);
} }
if (type & BMV_SCROLL) { if (type & BMV_SCROLL) {
if (c->stream - pkt->data > pkt->size - 2) { if (c->stream - pkt->data > pkt->size - 2) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment