jvdec: set alpha component
authorPeter Ross <pross@xvid.org>
Sat, 12 Nov 2011 00:20:01 +0000 (11:20 +1100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 12 Nov 2011 03:26:37 +0000 (04:26 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/jvdec.c

index f1fdee5..faf4a10 100644 (file)
@@ -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;