summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2013-01-05 23:37:41 +0000
committer smf- <smf-@users.noreply.github.com>2013-01-05 23:37:41 +0000
commit2e6443a49f4ead8933f662c6cb69a22f5b286505 (patch)
treec80de8e3e923815c6a759ac9bc089da2267b71bd /src
parentdac3c173c67c5db6fd9d7e47c58360f64e92e791 (diff)
skip without reading (nw)
Diffstat (limited to 'src')
-rw-r--r--src/lib/util/chdcd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/util/chdcd.c b/src/lib/util/chdcd.c
index 9f7f2b8fda0..75418a2b5d5 100644
--- a/src/lib/util/chdcd.c
+++ b/src/lib/util/chdcd.c
@@ -364,8 +364,7 @@ chd_error chdcd_parse_nero(const char *tocfname, cdrom_toc &outtoc, chdcd_track_
if (!memcmp(buffer, "DAOX", 4))
{
// skip second chunk size and UPC code
- read_uint32(infile);
- fseek(infile, 16, SEEK_CUR);
+ fseek(infile, 20, SEEK_CUR);
fread(&start, 1, 1, infile);
fread(&end, 1, 1, infile);
@@ -377,13 +376,13 @@ chd_error chdcd_parse_nero(const char *tocfname, cdrom_toc &outtoc, chdcd_track_
offset = 0;
for (track = start; track <= end; track++)
{
- UINT32 size, mode, unknown;
+ UINT32 size, mode;
UINT64 index0, index1, track_end;
fseek(infile, 12, SEEK_CUR); // skip ISRC code
size = read_uint16(infile);
mode = read_uint16(infile);
- unknown = read_uint16(infile);
+ fseek(infile, 2, SEEK_CUR);
index0 = read_uint64(infile);
index1 = read_uint64(infile);
track_end = read_uint64(infile);