1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

fix initial offset

This commit is contained in:
Alexandre Ratchov 2015-01-06 12:52:10 +01:00
parent 57d34508c5
commit 56e9456e0e

View File

@ -537,7 +537,9 @@ afile_aiff_readhdr(struct afile *f)
return 0; return 0;
comm_done = 1; comm_done = 1;
} else if (memcmp(chunk.id, aiff_id_data, 4) == 0) { } 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; break;
} else { } else {
#ifdef DEBUG #ifdef DEBUG