1
0
Fork 0
forked from len0rd/rockbox

ignore comments containing iTunes 7 gapless data; should solve issues reported in http://forums.rockbox.org/index.php?topic=12048.0 and http://forums.rockbox.org/index.php?topic=12053.0

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14294 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Kukla 2007-08-12 14:13:33 +00:00
parent ea88571493
commit 0bd027aa1a

View file

@ -145,8 +145,8 @@ const int afmt_rec_format[AFMT_NUM_CODECS] =
unsigned long unsync(unsigned long b0, unsigned long unsync(unsigned long b0,
unsigned long b1, unsigned long b1,
unsigned long b2, unsigned long b2,
unsigned long b3) unsigned long b3)
{ {
return (((long)(b0 & 0x7F) << (3*7)) | return (((long)(b0 & 0x7F) << (3*7)) |
((long)(b1 & 0x7F) << (2*7)) | ((long)(b1 & 0x7F) << (2*7)) |
@ -900,6 +900,9 @@ static void setid3v2title(int fd, struct mp3entry *entry)
*/ */
if(!memcmp( header, "COMM", 4 )) { if(!memcmp( header, "COMM", 4 )) {
/* ignore comments with iTunes 7 gapless data */
if(!strcmp(tag+4, "iTunNORM"))
break;
comm_offset = 3 + strlen(tag+4) + 1; comm_offset = 3 + strlen(tag+4) + 1;
if(bytesread>comm_offset) { if(bytesread>comm_offset) {
bytesread-=comm_offset; bytesread-=comm_offset;