Set AVS palette opaque.
This commit is contained in:
parent
1d38c746fd
commit
7b40f46fe2
@ -85,8 +85,10 @@ avs_decode_frame(AVCodecContext * avctx,
|
||||
if (first >= 256 || last > 256 || buf_end - buf < 4 + 4 + 3 * (last - first))
|
||||
return AVERROR_INVALIDDATA;
|
||||
buf += 4;
|
||||
for (i=first; i<last; i++, buf+=3)
|
||||
for (i=first; i<last; i++, buf+=3) {
|
||||
pal[i] = (buf[0] << 18) | (buf[1] << 10) | (buf[2] << 2);
|
||||
pal[i] |= 0xFF << 24;
|
||||
}
|
||||
|
||||
sub_type = buf[0];
|
||||
type = buf[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user