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

Set Electronic Arts TGV palette opaque.

This commit is contained in:
Carl Eugen Hoyos 2011-11-12 20:08:56 +01:00
parent f628134e77
commit c0be4ea0f2

View File

@ -278,7 +278,7 @@ static int tgv_decode_frame(AVCodecContext *avctx,
pal_count = AV_RL16(&buf[6]); pal_count = AV_RL16(&buf[6]);
buf += 12; buf += 12;
for(i=0; i<pal_count && i<AVPALETTE_COUNT && buf_end - buf >= 3; i++) { for(i=0; i<pal_count && i<AVPALETTE_COUNT && buf_end - buf >= 3; i++) {
s->palette[i] = AV_RB24(buf); s->palette[i] = 0xFF << 24 | AV_RB24(buf);
buf += 3; buf += 3;
} }
} }