From d0c688960358f3998b4f3e8da956d256bd9aa061 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 21 Mar 2011 09:02:58 +0000 Subject: [PATCH] Corrected nwa computation for drive role 5 --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/drive.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 1c55139..1110cca 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.03.19.222152" +#define Cdrskin_timestamP "2011.03.21.090313" diff --git a/libburn/drive.c b/libburn/drive.c index 706d6fa..3d431d7 100644 --- a/libburn/drive.c +++ b/libburn/drive.c @@ -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] =