1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-23 15:40:35 +00:00

cdrom: fix rounding

This commit is contained in:
Brad Parker 2019-07-02 03:31:28 -04:00
parent 1eba59a20c
commit 3817395803

@ -639,7 +639,7 @@ int cdrom_read(libretro_vfs_implementation_file *stream, unsigned char min, unsi
}
else
{
unsigned frames = msf_to_lba(min, sec, frame) + round((len + skip) / 2352.0);
unsigned frames = msf_to_lba(min, sec, frame) + ceil((len + skip) / 2352.0);
lba_to_msf(frames, &cdb[6], &cdb[7], &cdb[8]);