summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-03-10 15:32:59 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-03-10 15:32:59 +0000
commita1598b5836148f63193425f63e822937d2103482 (patch)
treec27422256b232cf9dfd8775348f6ceb7e84c145b /firmware
parentaa2972d41b6a8e98a05cfe391fef47ba6319c175 (diff)
downloadrockbox-a1598b5836148f63193425f63e822937d2103482.tar.gz
rockbox-a1598b5836148f63193425f63e822937d2103482.zip
I hate it when rippers don't follow the ID3V2 specs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3412 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/id3.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index 6aeafc4749..b9e72c66ac 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -304,8 +304,7 @@ static void setid3v2title(int fd, struct mp3entry *entry)
if(flags & 0x0040) /* Grouping identity */
skip++;
- if(flags & 0x000e) /* Compression, encryption or
- unsynchronization */
+ if(flags & 0x000c) /* Compression or encryption */
{
/* Skip it using the total size in case
it was truncated */
@@ -314,6 +313,9 @@ static void setid3v2title(int fd, struct mp3entry *entry)
continue;
}
+ /* The Unsynchronization flag can't be trusted, so we
+ don't check it for now... */
+
if(flags & 0x0001) /* Data length indicator */
skip += 4;