diff options
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 | ||