mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Handle dumping CD-i discs with audio tracks and a hidden data track 1. Fixes #703
This commit is contained in:
@@ -670,9 +670,11 @@ public static class MMC
|
||||
Array.Copy(cmdBuf, 0, videoNowColorFrame, i * 2352, 2352);
|
||||
}
|
||||
|
||||
FullTOC.TrackDataDescriptor? firstTrack = decodedToc?.TrackDescriptors.FirstOrDefault(t => t.POINT == 1);
|
||||
FullTOC.TrackDataDescriptor? firstTrack =
|
||||
decodedToc?.TrackDescriptors.FirstOrDefault(t => t.POINT ==
|
||||
decodedToc.Value.TrackDescriptors.Min(m => m.POINT));
|
||||
|
||||
if(firstTrack?.POINT == 1)
|
||||
if(firstTrack?.POINT is >= 1 and < 0xA0)
|
||||
{
|
||||
var firstTrackSector = (uint)(firstTrack.Value.PHOUR * 3600 * 75 + firstTrack.Value.PMIN * 60 * 75 +
|
||||
firstTrack.Value.PSEC * 75 + firstTrack.Value.PFRAME - 150);
|
||||
|
||||
Reference in New Issue
Block a user