track length is computed correctly now

This commit is contained in:
Jochen Keil 2009-03-31 22:06:28 +02:00
parent 6720a0a940
commit d7b0c768b0

View File

@ -324,10 +324,9 @@ flac_cue_tag_load(const char *file)
if (cs->data.cue_sheet.tracks != NULL
&& (tnum <= cs->data.cue_sheet.num_tracks - 1))
{
track_time = cs->data.cue_sheet.tracks[tnum].offset - 1
track_time = cs->data.cue_sheet.tracks[tnum].offset
- cs->data.cue_sheet.tracks[tnum - 1].offset;
}
FLAC__metadata_object_delete(cs);
}