diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-10 15:32:59 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-10 15:32:59 +0000 |
commit | a1598b5836148f63193425f63e822937d2103482 (patch) | |
tree | c27422256b232cf9dfd8775348f6ceb7e84c145b | |
parent | aa2972d41b6a8e98a05cfe391fef47ba6319c175 (diff) | |
download | rockbox-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
-rw-r--r-- | firmware/id3.c | 6 |
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; |