mirror of https://github.com/ericonr/sndio.git
fix initial offset
This commit is contained in:
parent
57d34508c5
commit
56e9456e0e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue