fix initial offset

This commit is contained in:
Alexandre Ratchov 2015-01-06 12:52:10 +01:00
parent 57d34508c5
commit 56e9456e0e
1 changed files with 3 additions and 1 deletions

View File

@ -537,7 +537,9 @@ afile_aiff_readhdr(struct afile *f)
return 0;
comm_done = 1;
} else if (memcmp(chunk.id, aiff_id_data, 4) == 0) {
f->startpos = pos + sizeof(form) + sizeof(chunk);
f->startpos = pos + sizeof(form) + sizeof(chunk) +
sizeof(struct aiff_data);
/* XXX: parse offset */
break;
} else {
#ifdef DEBUG