summaryrefslogtreecommitdiff
path: root/libpcsxcore/cdriso.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-07-12 23:56:04 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-07-12 23:56:04 +0000
commit533e6a2bfdc63de3e14f13300ee064564cd9375d (patch)
tree2e622ab8f68c65b99b076c86d4871c685f0c044a /libpcsxcore/cdriso.c
parent247d3802e22fe82df7e65deaa71fb20093b69ccc (diff)
downloadpcsxr-533e6a2bfdc63de3e14f13300ee064564cd9375d.tar.gz
Patch 16583 (MaddTheSane);
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90937 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/cdriso.c')
-rwxr-xr-xlibpcsxcore/cdriso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index a509906a..815bc82e 100755
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -1264,9 +1264,9 @@ static int cdread_2048(FILE *f, unsigned int base, void *dest, int sector)
/* Adapted from ecm.c:unecmify() (C) Neill Corlett */
//TODO: move this func to ecm.h
static int cdread_ecm_decode(FILE *f, unsigned int base, void *dest, int sector) {
- u32 output_edc=0, b, writebytecount=0, num;
+ u32 output_edc=0, b=0, writebytecount=0, num;
s32 sectorcount=0;
- s8 type; // mode type 0 (META) or 1, 2 or 3 for CDROM type
+ s8 type = 0; // mode type 0 (META) or 1, 2 or 3 for CDROM type
u8 sector_buffer[CD_FRAMESIZE_RAW];
boolean processsectors = (boolean)decoded_ecm_sectors; // this flag tells if to decode all sectors or just skip to wanted sector
ECMFILELUT* pos = &(ecm_savetable[0]); // points always to beginning of ECM DATA