Corrected nwa computation for drive role 5

1.0.6
Thomas Schmitt 12 years ago
parent a088a85374
commit d0c6889603
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 4
      libburn/drive.c

@ -1 +1 @@
#define Cdrskin_timestamP "2011.03.19.222152"
#define Cdrskin_timestamP "2011.03.21.090313"

@ -338,7 +338,7 @@ int burn_drive_grab(struct burn_drive *d, int le)
stbuf.st_size > 0) {
d->status = BURN_DISC_APPENDABLE;
d->role_5_nwa = stbuf.st_size / 2048 +
!!(stbuf.st_size % 2049);
!!(stbuf.st_size % 2048);
} else
d->status = BURN_DISC_BLANK;
} else {
@ -1566,7 +1566,7 @@ int burn_drive_grab_dummy(struct burn_drive_info *drive_infos[], char *fname)
d->status = BURN_DISC_APPENDABLE;
d->block_types[BURN_WRITE_SAO] = 0;
d->role_5_nwa = stbuf.st_size / 2048 +
!!(stbuf.st_size % 2049);
!!(stbuf.st_size % 2048);
} else {
d->status = BURN_DISC_BLANK;
d->block_types[BURN_WRITE_SAO] =

Loading…
Cancel
Save