trunk/src/lib/util/chdcd.c
| r20093 | r20094 | |
| 364 | 364 | if (!memcmp(buffer, "DAOX", 4)) |
| 365 | 365 | { |
| 366 | 366 | // skip second chunk size and UPC code |
| 367 | | read_uint32(infile); |
| 368 | | fseek(infile, 16, SEEK_CUR); |
| 367 | fseek(infile, 20, SEEK_CUR); |
| 369 | 368 | |
| 370 | 369 | fread(&start, 1, 1, infile); |
| 371 | 370 | fread(&end, 1, 1, infile); |
| r20093 | r20094 | |
| 377 | 376 | offset = 0; |
| 378 | 377 | for (track = start; track <= end; track++) |
| 379 | 378 | { |
| 380 | | UINT32 size, mode, unknown; |
| 379 | UINT32 size, mode; |
| 381 | 380 | UINT64 index0, index1, track_end; |
| 382 | 381 | |
| 383 | 382 | fseek(infile, 12, SEEK_CUR); // skip ISRC code |
| 384 | 383 | size = read_uint16(infile); |
| 385 | 384 | mode = read_uint16(infile); |
| 386 | | unknown = read_uint16(infile); |
| 385 | fseek(infile, 2, SEEK_CUR); |
| 387 | 386 | index0 = read_uint64(infile); |
| 388 | 387 | index1 = read_uint64(infile); |
| 389 | 388 | track_end = read_uint64(infile); |