fix channels count for MIB

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@119 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
fastelbja 2008-05-14 21:13:47 +00:00
parent feb99a151c
commit 90984fedc8

View File

@ -87,8 +87,8 @@ VGMSTREAM * init_vgmstream_ps2_mib(const char * const filename) {
if(interleave==0) interleave=readOffset-0x10;
// be sure to point to an interleave value
if((((readOffset-0x10)%interleave)==interleave) || ((readOffset-0x10)==interleave)) {
if (channel_count<6) channel_count++;
if(((readOffset-0x10)==channel_count*interleave)) {
channel_count++;
}
}