diff options
author | Mark Arigo <markarigo@gmail.com> | 2006-11-16 21:04:04 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2006-11-16 21:04:04 +0000 |
commit | a60caa9f542849931cd198f59cca1dff6b37e922 (patch) | |
tree | f5941b5b2ddd15869ab56dd6d78fed4133c98fa2 /apps/playback.c | |
parent | 5f85fc50b1d454acbfb0818e0d031ff35dba7c54 (diff) | |
download | rockbox-a60caa9f542849931cd198f59cca1dff6b37e922.tar.gz rockbox-a60caa9f542849931cd198f59cca1dff6b37e922.zip |
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
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c index 8f4e4a6d0a..279fb15482 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -2260,8 +2260,10 @@ strip_ape_tag: | |||
2260 | } | 2260 | } |
2261 | 2261 | ||
2262 | /* Read the version and length from the footer */ | 2262 | /* Read the version and length from the footer */ |
2263 | version = letoh32(*(long *)(filebuf + tag_idx + 8)); | 2263 | version = filebuf[tag_idx+8] | (filebuf[tag_idx+9] << 8) | |
2264 | len = letoh32(*(long *)(filebuf + tag_idx + 12)); | 2264 | (filebuf[tag_idx+10] << 16) | (filebuf[tag_idx+11] << 24); |
2265 | len = filebuf[tag_idx+12] | (filebuf[tag_idx+13] << 8) | | ||
2266 | (filebuf[tag_idx+14] << 16) | (filebuf[tag_idx+15] << 24); | ||
2265 | if (version == 2000) | 2267 | if (version == 2000) |
2266 | len += 32; /* APEv2 has a 32 byte header */ | 2268 | len += 32; /* APEv2 has a 32 byte header */ |
2267 | 2269 | ||