mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-03 05:13:44 +00:00
Make MSS1 palette opaque.
This commit is contained in:
parent
ebfcd6049f
commit
bec21ce7f4
@ -554,7 +554,7 @@ static int decode_pal(MSS1Context *ctx, ArithCoder *acoder)
|
|||||||
r = arith_get_bits(acoder, 8);
|
r = arith_get_bits(acoder, 8);
|
||||||
g = arith_get_bits(acoder, 8);
|
g = arith_get_bits(acoder, 8);
|
||||||
b = arith_get_bits(acoder, 8);
|
b = arith_get_bits(acoder, 8);
|
||||||
*pal++ = (r << 16) | (g << 8) | b;
|
*pal++ = (0xFF << 24) | (r << 16) | (g << 8) | b;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -803,7 +803,7 @@ static av_cold int mss1_decode_init(AVCodecContext *avctx)
|
|||||||
av_int2float(AV_RB32(avctx->extradata + 44)));
|
av_int2float(AV_RB32(avctx->extradata + 44)));
|
||||||
|
|
||||||
for (i = 0; i < 256; i++)
|
for (i = 0; i < 256; i++)
|
||||||
c->pal[i] = AV_RB24(avctx->extradata + 52 + i * 3);
|
c->pal[i] = 0xFF << 24 | AV_RB24(avctx->extradata + 52 + i * 3);
|
||||||
|
|
||||||
avctx->pix_fmt = PIX_FMT_PAL8;
|
avctx->pix_fmt = PIX_FMT_PAL8;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user