Commit 0d49dd37 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Set more KMVC palettes opaque.

parent 789da2e9
...@@ -269,7 +269,7 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPa ...@@ -269,7 +269,7 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPa
ctx->pic.palette_has_changed = 1; ctx->pic.palette_has_changed = 1;
// palette starts from index 1 and has 127 entries // palette starts from index 1 and has 127 entries
for (i = 1; i <= ctx->palsize; i++) { for (i = 1; i <= ctx->palsize; i++) {
ctx->pal[i] = bytestream_get_be24(&buf); ctx->pal[i] = 0xFF << 24 | bytestream_get_be24(&buf);
} }
} }
...@@ -356,7 +356,7 @@ static av_cold int decode_init(AVCodecContext * avctx) ...@@ -356,7 +356,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
c->prev = c->frm1; c->prev = c->frm1;
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
c->pal[i] = i * 0x10101; c->pal[i] = 0xFF << 24 | i * 0x10101;
} }
if (avctx->extradata_size < 12) { if (avctx->extradata_size < 12) {
......
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