Set Electronic Arts TGV palette opaque.

pull/2/head
Carl Eugen Hoyos 13 years ago
parent f628134e77
commit c0be4ea0f2
  1. 2
      libavcodec/eatgv.c

@ -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;
} }
} }

Loading…
Cancel
Save