Browse Source

Set Sun Rasterfile palette opaque.

tags/n0.9
Carl Eugen Hoyos 14 years ago
parent
commit
58c3538839
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/sunrast.c

+ 1
- 1
libavcodec/sunrast.c View File

@@ -135,7 +135,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,

ptr = p->data[1];
for (x=0; x<len; x++, ptr+=4)
*(uint32_t *)ptr = (buf[x]<<16) + (buf[len+x]<<8) + buf[len+len+x];
*(uint32_t *)ptr = (0xFF<<24) + (buf[x]<<16) + (buf[len+x]<<8) + buf[len+len+x];
}

buf += maplength;


Loading…
Cancel
Save