fail on unhandled vag stuff

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@160 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-05-18 05:05:49 +00:00
parent 6ef92ff9ce
commit 4581e3410f

View File

@ -57,6 +57,8 @@ VGMSTREAM * init_vgmstream_ps2_vag(const char * const filename) {
case 'V':
if(read_32bitBE(0x20,infile)==0x53746572) // vag Stereo
channel_count=2;
else
goto fail;
break;
case 'p':
channel_count=1;
@ -93,6 +95,8 @@ VGMSTREAM * init_vgmstream_ps2_vag(const char * const filename) {
} while (infile->offset<(off_t)fileLength);
loop_flag = (loopEnd!=0);
break;
default:
goto fail;
}
/* build the VGMSTREAM */
@ -132,6 +136,8 @@ VGMSTREAM * init_vgmstream_ps2_vag(const char * const filename) {
vgmstream->meta_type=meta_PS2_pGAV;
start_offset=0;
break;
default:
goto fail;
}
vgmstream->interleave_block_size=interleave;