Set more KMVC palettes opaque.

This commit is contained in:
Carl Eugen Hoyos 2011-11-13 03:01:30 +01:00
parent 789da2e9f1
commit 0d49dd3725
1 changed files with 2 additions and 2 deletions

View File

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