Fixing SIGSEGV with CD SAO introduced with revision 2808

This commit is contained in:
Thomas Schmitt 2009-09-18 16:16:56 +00:00
parent ad4a286736
commit 82ee4c8788
2 changed files with 7 additions and 5 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2009.09.13.095055"
#define Cdrskin_timestamP "2009.09.18.161214"

View File

@ -302,13 +302,15 @@ static int convert_data(struct burn_write_opts *o, struct burn_track *track,
if ((outmode & BURN_MODE_BITS) == (inmode & BURN_MODE_BITS)) {
/* see MMC-5 4.2.3.8.5.3 Block Format for Mode 2 form 1 Data
Table 24 Mode 2 Formed Sector Sub-header Format */
if (track->cdxa_conversion == 1)
inlen += 8;
if (track != NULL)
if (track->cdxa_conversion == 1)
inlen += 8;
get_bytes(track, inlen, data);
if (track->cdxa_conversion == 1)
memmove(data, data + 8, inlen - 8);
if (track != NULL)
if (track->cdxa_conversion == 1)
memmove(data, data + 8, inlen - 8);
return 1;
}