Do not set INDEX 1 to a value higher than what the TOC already said.

This commit is contained in:
2022-04-10 14:10:41 +01:00
parent 9fc10e1e57
commit 40ed1b19e2
9 changed files with 49 additions and 20 deletions

View File

@@ -301,7 +301,7 @@ namespace Aaru.Tests.Issues
bool indexesChanged = CompactDisc.WriteSubchannelToImage(MmcSubchannel.Raw,
MmcSubchannel.Raw, sector, doneSectors + track.TrackStartSector, 1, null,
isrcs, (byte)track.TrackSequence, ref mcn, tracks, subchannelExtents, true,
outputOptical, true, true, null, null, smallestPregapLbaPerTrack, false);
outputOptical, true, true, null, null, smallestPregapLbaPerTrack, false, out _);
if(indexesChanged)
outputOptical.SetTracks(tracks.ToList());
@@ -321,7 +321,7 @@ namespace Aaru.Tests.Issues
bool indexesChanged = CompactDisc.WriteSubchannelToImage(MmcSubchannel.Raw,
MmcSubchannel.Raw, sector, doneSectors + track.TrackStartSector, sectorsToDo,
null, isrcs, (byte)track.TrackSequence, ref mcn, tracks, subchannelExtents,
true, outputOptical, true, true, null, null, smallestPregapLbaPerTrack, false);
true, outputOptical, true, true, null, null, smallestPregapLbaPerTrack, false, out _);
if(indexesChanged)
outputOptical.SetTracks(tracks.ToList());