Mapped undefined size to 0 with burn_disc_get_formats() and DVD-RW

This commit is contained in:
Thomas Schmitt 2008-05-06 08:41:48 +00:00
parent ff7520f2f5
commit 2d9d250471
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2008.05.06.082429"
#define Cdrskin_timestamP "2008.05.06.084156"

View File

@ -2354,6 +2354,8 @@ static int mmc_read_format_capacities_al(struct burn_drive *d,
d->format_descr_type = dpt[4] & 3;
d->format_curr_max_size = (((off_t) dpt[0]) << 24)
+ (dpt[1] << 16) + (dpt[2] << 8) + dpt[3];
if (d->format_descr_type == BURN_FORMAT_IS_UNKNOWN)
d->format_curr_max_size = 0;
d->format_curr_blsas = (dpt[5] << 16) + (dpt[6] << 8) + dpt[7];
/* <<<