summaryrefslogtreecommitdiff
path: root/libavcodec/jvdec.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2011-11-12 11:20:01 +1100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-12 04:26:37 +0100
commit070d2d75897c29dfc3992227bdf33c5933697ee8 (patch)
tree77da065a9f07ff9b6eef2a4023adeff024c91304 /libavcodec/jvdec.c
parent341d4903a65c4f3af4b7379bb078460b434169d6 (diff)
jvdec: set alpha component
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jvdec.c')
-rw-r--r--libavcodec/jvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c
index f1fdee5d43..faf4a106b7 100644
--- a/libavcodec/jvdec.c
+++ b/libavcodec/jvdec.c
@@ -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;