1
0
Fork 0
forked from len0rd/rockbox

Deal with new "edts" tag in iTunes 5 encoded files - this fixes metadata reading and seeking in new ALAC files

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7555 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-09-24 11:40:26 +00:00
parent d7ad24ed39
commit ef26cd2af1

View file

@ -1108,9 +1108,16 @@ static bool get_alac_metadata(int fd, struct mp3entry* id3)
lseek(fd, sub_chunk_len - 8, SEEK_CUR); /* FIXME not 8 */
size_remaining-=sub_chunk_len;
/* Process mdia */
/* Process mdia - skipping possible edts */
n=read_uint32be(fd,&sub_chunk_len);
n=read(fd,&sub_chunk_id,4);
if (memcmp(&sub_chunk_id,"edts",4)==0) {
lseek(fd, sub_chunk_len - 8, SEEK_CUR); /* FIXME not 8 */
size_remaining-=sub_chunk_len;
n=read_uint32be(fd,&sub_chunk_len);
n=read(fd,&sub_chunk_id,4);
}
if (memcmp(&sub_chunk_id,"mdia",4)!=0) {
logf("Expecting mdia\n");
return false;