diff options
author | Dave Chapman <dave@dchapman.com> | 2008-07-27 10:49:43 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-07-27 10:49:43 +0000 |
commit | 0d2254f4789dae6b3ce81b4a8f8fd040366f6367 (patch) | |
tree | 457385bcdda5242308f352acf9a00884367ec29f /apps | |
parent | 1bb04334b12efee7df3cd1d9a6c06c4ebf065007 (diff) |
SAP codec: Ensure the module_info struct is correctly aligned - seems to fix the data aborts being reported on ARM targets (closes FS#9216).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18126 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/metadata/asap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/metadata/asap.c b/apps/metadata/asap.c index f8ff1175ce..1ab972181c 100644 --- a/apps/metadata/asap.c +++ b/apps/metadata/asap.c @@ -230,7 +230,7 @@ bool get_asap_metadata(int fd, struct mp3entry* id3) int filelength = filesize(fd); struct module_info *info; - info = (struct module_info *) buf; + info = (struct module_info *) (((intptr_t)buf + 3) & ~3); /* Align to 4 bytes */ if(parse_sap_header(fd,info,filelength) == false) { |