cdvdgigaherz: Fix Q subchannel relative offset calculation

The wrong comparison was used, so all the relative offsets were
completely wrong. Fixes the wrong track issue in the CD player.

Regression introduced in f314c2a4d9.
This commit is contained in:
Jonathan Li 2017-10-12 07:20:45 +01:00
parent 1bcb7eccbc
commit 9be61f83df
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ EXPORT s32 CALLBACK CDVDreadSubQ(u32 lsn, cdvdSubQ *subq)
lsn_to_msf(&subq->discM, &subq->discS, &subq->discF, lsn + 150);
u8 i = strack;
while (i < etrack && lsn < tracks[i + 1].start_lba)
while (i < etrack && lsn >= tracks[i + 1].start_lba)
++i;
lsn -= tracks[i].start_lba;