forked from len0rd/rockbox
Fix alignment issue that caused data aborts on arm targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11540 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5f85fc50b1
commit
a60caa9f54
1 changed files with 4 additions and 2 deletions
|
|
@ -2260,8 +2260,10 @@ strip_ape_tag:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read the version and length from the footer */
|
/* Read the version and length from the footer */
|
||||||
version = letoh32(*(long *)(filebuf + tag_idx + 8));
|
version = filebuf[tag_idx+8] | (filebuf[tag_idx+9] << 8) |
|
||||||
len = letoh32(*(long *)(filebuf + tag_idx + 12));
|
(filebuf[tag_idx+10] << 16) | (filebuf[tag_idx+11] << 24);
|
||||||
|
len = filebuf[tag_idx+12] | (filebuf[tag_idx+13] << 8) |
|
||||||
|
(filebuf[tag_idx+14] << 16) | (filebuf[tag_idx+15] << 24);
|
||||||
if (version == 2000)
|
if (version == 2000)
|
||||||
len += 32; /* APEv2 has a 32 byte header */
|
len += 32; /* APEv2 has a 32 byte header */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue