[FFmpeg-cvslog] jvdec: set alpha component
Peter Ross
git at videolan.org
Sat Nov 12 04:56:34 CET 2011
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sat Nov 12 11:20:01 2011 +1100| [070d2d75897c29dfc3992227bdf33c5933697ee8] | committer: Michael Niedermayer
jvdec: set alpha component
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=070d2d75897c29dfc3992227bdf33c5933697ee8
---
libavcodec/jvdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c
index f1fdee5..faf4a10 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;
More information about the ffmpeg-cvslog
mailing list