Browse Source

jvdec: set alpha component

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Peter Ross Michael Niedermayer 14 years ago
parent
commit
070d2d7589
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/jvdec.c

+ 1
- 1
libavcodec/jvdec.c View 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;


Loading…
Cancel
Save