diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-13 03:01:30 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-13 03:01:30 +0100 |
commit | 0d49dd37253e850d433874cd134701a624082ebc (patch) | |
tree | 22d8bda514f80f1ea81c1d25d255c6df8d662ed5 /libavcodec/kmvc.c | |
parent | 789da2e9f16d4eeb4d737fdb7beebe9e11f9c695 (diff) | |
download | ffmpeg-0d49dd37253e850d433874cd134701a624082ebc.tar.gz |
Set more KMVC palettes opaque.
Diffstat (limited to 'libavcodec/kmvc.c')
-rw-r--r-- | libavcodec/kmvc.c | 4 |
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) { |