From 0b3739273ff13e27ea9d02a64d13db04c11de7ee Mon Sep 17 00:00:00 2001 From: fastelbja Date: Mon, 19 May 2008 11:15:01 +0000 Subject: [PATCH] some ps2_svag fixes git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@173 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/meta/ps2_vag.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/meta/ps2_vag.c b/src/meta/ps2_vag.c index 5c1354f2..2ea30387 100644 --- a/src/meta/ps2_vag.c +++ b/src/meta/ps2_vag.c @@ -32,12 +32,11 @@ VGMSTREAM * init_vgmstream_ps2_vag(const char * const filename) { size_t interleave; int loop_flag=0; - int channel_count; + int channel_count=1; int i; /* check extension, case insensitive */ - if (strcasecmp("vag",filename_extension(filename)) && - strcasecmp("svag",filename_extension(filename))) goto fail; + if (strcasecmp("vag",filename_extension(filename))) goto fail; /* try to open the file for header reading */ infile = open_streamfile_buffer(filename,0x8000); @@ -58,12 +57,7 @@ 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; - /* Search for loop in VAG */ fileLength = get_streamfile_size(infile);