Browse Source

iff: decode HAM8 images with masking correctly.

Fixes ticket #967.

Reviewed-by: Peter Ross
tags/n1.1
Piotr Bandurski Carl Eugen Hoyos 12 years ago
parent
commit
4413a8428a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/iff.c

+ 1
- 1
libavcodec/iff.c View File

@@ -231,7 +231,7 @@ static int extract_header(AVCodecContext *const avctx,
s->transparency = bytestream_get_be16(&buf);
s->masking = bytestream_get_byte(&buf);
if (s->masking == MASK_HAS_MASK) {
if (s->bpp >= 8) {
if (s->bpp >= 8 && !s->ham) {
avctx->pix_fmt = AV_PIX_FMT_RGB32;
av_freep(&s->mask_buf);
av_freep(&s->mask_palbuf);


Loading…
Cancel
Save