Bug fix: CD tracks were perceived 2 sectors too short. Nice with TAO, bad with SAO.

This commit is contained in:
Thomas Schmitt 2012-07-08 10:29:20 +00:00
parent facbf4f628
commit e02898621e
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2012.06.17.173420"
#define Cdrskin_timestamP "2012.07.08.103007"

View File

@ -794,7 +794,9 @@ int burn_disc_cd_toc_extensions(struct burn_drive *drive, int flag)
if (ret > 0) {
ret = mmc_four_char_to_int(
buf->data + 24);
if (ret < prev_entry->track_blocks)
if (ret < prev_entry->track_blocks &&
((!drive->current_is_cd_profile) ||
ret < prev_entry->track_blocks - 2))
prev_entry->track_blocks = ret;
}
prev_entry->extensions_valid |= 1;