diff options
| author | 2010-09-19 05:09:00 +0000 | |
|---|---|---|
| committer | 2010-09-19 05:09:00 +0000 | |
| commit | 7a4744d31da401404f7e67de707021fa5cc12711 (patch) | |
| tree | e32c4f80a2a61643c42350b07437b33b63086f55 /src/tools | |
| parent | cbffdbb1d7111774a87284797bc2f753706f43ec (diff) | |
Cleanups and version bump.mame0139u3
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/chdcd.c | 10 | ||||
| -rw-r--r-- | src/tools/chdman.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/chdcd.c b/src/tools/chdcd.c index b0bdc3d0143..2be6c783760 100644 --- a/src/tools/chdcd.c +++ b/src/tools/chdcd.c @@ -124,8 +124,8 @@ static int msf_to_frames( char *token ) } /*------------------------------------------------- - parse_wav_sample - takes a .WAV file, verifies - that the file is 16 bits, and returns the + parse_wav_sample - takes a .WAV file, verifies + that the file is 16 bits, and returns the length in bytes of the data and the offset in bytes to where the data starts in the file. -------------------------------------------------*/ @@ -470,7 +470,7 @@ chd_error chdcd_parse_cue(const char *tocfname, cdrom_toc *outtoc, chdcd_track_i outinfo->idx0offs[trknum] = -1; outinfo->idx1offs[trknum] = 0; strcpy(&outinfo->fname[trknum][0], lastfname); // default filename to the last one -// printf("trk %d: fname %s offset %d\n", trknum, &outinfo->fname[trknum][0], outinfo->offset[trknum]); +// printf("trk %d: fname %s offset %d\n", trknum, &outinfo->fname[trknum][0], outinfo->offset[trknum]); cdrom_convert_type_string_to_track_info(token, &outtoc->tracks[trknum]); if (outtoc->tracks[trknum].datasize == 0) @@ -532,7 +532,7 @@ chd_error chdcd_parse_cue(const char *tocfname, cdrom_toc *outtoc, chdcd_track_i } } - /* close the input CUE */ + /* close the input CUE */ fclose(infile); /* store the number of tracks found */ @@ -593,7 +593,7 @@ chd_error chdcd_parse_cue(const char *tocfname, cdrom_toc *outtoc, chdcd_track_i } else { - outinfo->offset[trknum] = outinfo->offset[trknum-1] + outtoc->tracks[trknum-1].frames * (outtoc->tracks[trknum-1].datasize + outtoc->tracks[trknum-1].subsize); + outinfo->offset[trknum] = outinfo->offset[trknum-1] + outtoc->tracks[trknum-1].frames * (outtoc->tracks[trknum-1].datasize + outtoc->tracks[trknum-1].subsize); } if (!outtoc->tracks[trknum].frames) diff --git a/src/tools/chdman.c b/src/tools/chdman.c index dcd8625a053..ac19f8570b9 100644 --- a/src/tools/chdman.c +++ b/src/tools/chdman.c @@ -1610,7 +1610,7 @@ static int do_extractcd(int argc, char *argv[], int param) { char modestr[16]; - if (track == 0) + if (track == 0) { fprintf(outfile, "FILE \"%s\" BINARY\n", outputfile2); } |
