forked from len0rd/rockbox
Fix data abort introduced by ef92ed4a
.
Change-Id: I3e1bf2434238835d2d2b8f5f2a8f44b0df97b33d
This commit is contained in:
parent
646edc594f
commit
61a096499b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue