Revision dbfdb288 libavcodec/bmp.c

View differences:

libavcodec/bmp.c
245 245
        buf = buf0 + 14 + ihsize; //palette location
246 246
        if((hsize-ihsize-14) < (colors << 2)){ // OS/2 bitmap, 3 bytes per palette entry
247 247
            for(i = 0; i < colors; i++)
248
                ((uint32_t*)p->data[1])[i] = bytestream_get_le24(&buf);
248
                ((uint32_t*)p->data[1])[i] = (0xff<<24) | bytestream_get_le24(&buf);
249 249
        }else{
250 250
            for(i = 0; i < colors; i++)
251 251
                ((uint32_t*)p->data[1])[i] = bytestream_get_le32(&buf);

Also available in: Unified diff