1
0
Fork 0
forked from len0rd/rockbox

Fix data abort introduced by ef92ed4a.

Change-Id: I3e1bf2434238835d2d2b8f5f2a8f44b0df97b33d
This commit is contained in:
Frank Gevaerts 2014-01-04 22:15:02 +01:00
parent 646edc594f
commit 61a096499b

View file

@ -276,7 +276,7 @@ static unsigned int read_part_line(struct bmp_args *ba)
break;
case 15:
case 16:
data = letoh16(*(uint16_t*)ibuf);
data = ibuf[0] | (ibuf[1]<<8);
component = (data << 3) & 0xf8;
component |= component >> 5;
buf->blue = component;