You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
jvdec: set alpha component
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
341d4903a6
commit
070d2d7589
@@ -172,7 +172,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
|
|
||||||
if (buf < buf_end) {
|
if (buf < buf_end) {
|
||||||
for (i = 0; i < AVPALETTE_COUNT && buf + 3 <= buf_end; i++) {
|
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;
|
buf += 3;
|
||||||
}
|
}
|
||||||
s->palette_has_changed = 1;
|
s->palette_has_changed = 1;
|
||||||
|
Reference in New Issue
Block a user