Commit 3a15051a authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Always assume the bmp palette as being opaque.

parent f41a6c8f
...@@ -247,7 +247,7 @@ static int bmp_decode_frame(AVCodecContext *avctx, ...@@ -247,7 +247,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
((uint32_t*)p->data[1])[i] = (0xff<<24) | bytestream_get_le24(&buf); ((uint32_t*)p->data[1])[i] = (0xff<<24) | bytestream_get_le24(&buf);
}else{ }else{
for(i = 0; i < colors; i++) for(i = 0; i < colors; i++)
((uint32_t*)p->data[1])[i] = bytestream_get_le32(&buf); ((uint32_t*)p->data[1])[i] = 0xFFU << 24 | bytestream_get_le32(&buf);
} }
buf = buf0 + hsize; buf = buf0 + hsize;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment