Browse Source

Set Discworld II BMV palette opaque.

tags/n0.9
Carl Eugen Hoyos 13 years ago
parent
commit
d6e14e24b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/bmv.c

+ 1
- 1
libavcodec/bmv.c View File

@@ -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) {


Loading…
Cancel
Save