소스 검색

Fix CD-ROM leadout LBA with BIN/CUE images

E.g. if the last track has 1000 sectors, the valid LBAs are 0 to 999
and the leadout should start at LBA 1000.
Petteri Aimonen 2 년 전
부모
커밋
fd689d6ba5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/BlueSCSI_cdrom.cpp

+ 1 - 1
src/BlueSCSI_cdrom.cpp

@@ -230,7 +230,7 @@ static uint32_t getLeadOutLBA(const CUETrackInfo* lasttrack)
         image_config_t &img = *(image_config_t*)scsiDev.target->cfg;
         uint32_t lastTrackBlocks = (img.file.size() - lasttrack->file_offset)
                 / lasttrack->sector_length;
-        return lasttrack->track_start + lastTrackBlocks + 1;
+        return lasttrack->track_start + lastTrackBlocks;
     }
     else
     {