aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-13 03:01:30 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-13 03:01:30 +0100
commit0d49dd37253e850d433874cd134701a624082ebc (patch)
tree22d8bda514f80f1ea81c1d25d255c6df8d662ed5 /libavcodec
parent789da2e9f16d4eeb4d737fdb7beebe9e11f9c695 (diff)
downloadffmpeg-0d49dd37253e850d433874cd134701a624082ebc.tar.gz
Set more KMVC palettes opaque.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/kmvc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/kmvc.c b/libavcodec/kmvc.c
index 175b84c830..8663c9524a 100644
--- a/libavcodec/kmvc.c
+++ b/libavcodec/kmvc.c
@@ -269,7 +269,7 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPa
ctx->pic.palette_has_changed = 1;
// palette starts from index 1 and has 127 entries
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;
for (i = 0; i < 256; i++) {
- c->pal[i] = i * 0x10101;
+ c->pal[i] = 0xFF << 24 | i * 0x10101;
}
if (avctx->extradata_size < 12) {