Fix compile errors for BFWAV

This commit is contained in:
shinyquagsire23 2017-07-06 18:39:48 -06:00
parent d2e2b86785
commit b07a5e7ffe

View File

@ -111,7 +111,7 @@ VGMSTREAM * init_vgmstream_bfwav(STREAMFILE *streamFile) {
if ((uint32_t)read_16bit(coeffheader, streamFile) != 0x1F00) goto fail; if ((uint32_t)read_16bit(coeffheader, streamFile) != 0x1F00) goto fail;
off_t coef_offset = read_32bit(coeffheader + 0xC, streamFile) + coeffheader; off_t coef_offset = read_32bit(coeffheader + 0xC, streamFile) + coeffheader;
vgmstream->ch[j].adpcm_coef[i] = read_16bit(coef_offset + j*coef_spacing + i * 2, streamFile); vgmstream->ch[j].adpcm_coef[i] = read_16bit(coef_offset + i * 2, streamFile);
} }
} }
} }