summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore')
-rwxr-xr-xlibpcsxcore/cdriso.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index 8283d9fd..6d066f38 100755
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -33,6 +33,7 @@
#else
#include <sys/time.h>
#include <unistd.h>
+#include <limits.h>
#endif
#include <zlib.h>
@@ -652,9 +653,9 @@ static int parsecue(const char *isofile) {
}
}
else if (sscanf(linebuf, " TRACK %u MODE%u/%u", &t, &mode, &sector_size) == 3) {
+ s32 accurate_len;
// TODO: if 2048 frame length -> recalculate file_len?
ti[numtracks].type = DATA;
- s32 accurate_len;
if (handleecm(filepath, &accurate_len) == 0) {// detect if ECM & get accurate length
file_len = accurate_len;
}