CDImageCCD: Fix LBA count including pregaps twice

Track start is index 1 but length includes the pregap, so the lead-out
position reported by GetTD was too late.
This commit is contained in:
Stenzek committed 2026-10-25 14:38:36 +10:00
1 parent 92a7758b53
commit b2b68c3ced
1 file changed
+1 -1
+1 -1
View File
@@ -382,7 +382,7 @@ bool CDImageCCD::OpenAndParse(const char* path, Error* error)
return false;
}
m_lba_count = m_tracks.back().start_lba + m_tracks.back().length;
m_lba_count = leadout_lba + plba_offset;
AddLeadOutIndex();
m_path = path;