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 577d34e931
commit 5ab84314c0
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;