Commit 070d2d75 authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

jvdec: set alpha component

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 341d4903
......@@ -172,7 +172,7 @@ static int decode_frame(AVCodecContext *avctx,
if (buf < buf_end) {
for (i = 0; i < AVPALETTE_COUNT && buf + 3 <= buf_end; i++) {
s->palette[i] = AV_RB24(buf) << 2;
s->palette[i] = (0xFF << 24) | AV_RB24(buf) << 2;
buf += 3;
}
s->palette_has_changed = 1;
......
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