Skip to content

Commit

Permalink
nall: fix relative time in pregap subchannel q
Browse files Browse the repository at this point in the history
  • Loading branch information
invertego authored and LukeUsher committed Aug 28, 2023
1 parent 714ecc1 commit 9280622
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nall/cd/session.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ struct Session {
q[0] = track.control << 4 | 1;
q[1] = BCD::encode(trackID);
q[2] = BCD::encode(indexID);
auto msf = MSF(lba - track.indices[1].lba);
auto msf = indexID == 0
? MSF(track.indices[0].end - lba)
: MSF(lba - track.indices[1].lba);
q[3] = BCD::encode(msf.minute);
q[4] = BCD::encode(msf.second);
q[5] = BCD::encode(msf.frame);
Expand Down

0 comments on commit 9280622

Please sign in to comment.