Corrected bug reported by gcc -O2
This commit is contained in:
parent
17ddc90046
commit
800ffa6585
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2006.12.20.170502"
|
#define Cdrskin_timestamP "2006.12.20.171230"
|
||||||
|
@ -136,7 +136,7 @@ int mmc_get_nwa(struct burn_drive *d, int trackno, int *lba, int *nwa)
|
|||||||
memcpy(c.opcode, MMC_TRACK_INFO, sizeof(MMC_TRACK_INFO));
|
memcpy(c.opcode, MMC_TRACK_INFO, sizeof(MMC_TRACK_INFO));
|
||||||
c.opcode[1] = 1;
|
c.opcode[1] = 1;
|
||||||
if(trackno<=0) {
|
if(trackno<=0) {
|
||||||
if (d->current_profile = 0x1a) /* DVD+RW */
|
if (d->current_profile == 0x1a) /* DVD+RW */
|
||||||
c.opcode[5] = 1;
|
c.opcode[5] = 1;
|
||||||
else /* mmc5r03c.pdf: valid only for CD, DVD+R, DVD+R DL */
|
else /* mmc5r03c.pdf: valid only for CD, DVD+R, DVD+R DL */
|
||||||
c.opcode[5] = 0xFF;
|
c.opcode[5] = 0xFF;
|
||||||
@ -151,7 +151,7 @@ int mmc_get_nwa(struct burn_drive *d, int trackno, int *lba, int *nwa)
|
|||||||
+ (data[10] << 8) + data[11];
|
+ (data[10] << 8) + data[11];
|
||||||
*nwa = (data[12] << 24) + (data[13] << 16)
|
*nwa = (data[12] << 24) + (data[13] << 16)
|
||||||
+ (data[14] << 8) + data[15];
|
+ (data[14] << 8) + data[15];
|
||||||
if (d->current_profile = 0x1a) { /* DVD+RW */
|
if (d->current_profile == 0x1a) { /* DVD+RW */
|
||||||
*nwa = *nwa = 0;
|
*nwa = *nwa = 0;
|
||||||
} else if (!(data[7]&1)) {
|
} else if (!(data[7]&1)) {
|
||||||
/* ts A61106 : MMC-1 Table 142 : NWA_V = NWA Valid Flag */
|
/* ts A61106 : MMC-1 Table 142 : NWA_V = NWA Valid Flag */
|
||||||
|
Loading…
Reference in New Issue
Block a user