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 081b01ad1b
commit 87f67a9267
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,11 +302,13 @@ static int convert_data(struct burn_write_opts *o, struct burn_track *track,
if ((outmode & BURN_MODE_BITS) == (inmode & BURN_MODE_BITS)) { 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 /* 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 */ Table 24 Mode 2 Formed Sector Sub-header Format */
if (track != NULL)
if (track->cdxa_conversion == 1) if (track->cdxa_conversion == 1)
inlen += 8; inlen += 8;
get_bytes(track, inlen, data); get_bytes(track, inlen, data);
if (track != NULL)
if (track->cdxa_conversion == 1) if (track->cdxa_conversion == 1)
memmove(data, data + 8, inlen - 8); memmove(data, data + 8, inlen - 8);
return 1; return 1;