1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Set Chronomaster DFA palette opaque.

This commit is contained in:
Carl Eugen Hoyos 2011-11-12 20:05:35 +01:00
parent 320f0f04a1
commit e18f70c2d1

View File

@ -339,7 +339,7 @@ static int dfa_decode_frame(AVCodecContext *avctx,
tmp_buf = buf;
for (i = 0; i < pal_elems; i++) {
s->pal[i] = bytestream_get_be24(&tmp_buf) << 2;
s->pal[i] |= (s->pal[i] >> 6) & 0x30303;
s->pal[i] |= 0xFF << 24 | (s->pal[i] >> 6) & 0x30303;
}
s->pic.palette_has_changed = 1;
} else if (chunk_type <= 9) {