mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix dicformat not reading MODE2 sectors with incorrect EDC/ECC correctly.
This commit is contained in:
@@ -1486,6 +1486,13 @@ namespace DiscImageChef.DiscImages
|
||||
if((sectorSuffixDdt[sectorAddress] & CD_XFIX_MASK) == (uint)CdFixFlags.Mode2Form2Ok)
|
||||
ReconstructEcc(ref sector, TrackType.CdMode2Form2);
|
||||
}
|
||||
else if((sectorSuffixDdt[sectorAddress] & CD_XFIX_MASK) == (uint)CdFixFlags.NotDumped)
|
||||
{
|
||||
// Do nothing
|
||||
}
|
||||
else
|
||||
// Mode 2 where ECC failed
|
||||
Array.Copy(data, 0, sector, 24, 2328);
|
||||
}
|
||||
else if(mode2Subheaders != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user