From 83d87d582155d734c46cf1272c8e4f28ab94b39b Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 4 Jan 2017 22:35:56 +0100 Subject: [PATCH] Moved lba_to_msf to before iso_getcurrentsubchannel in cdrom_iso.c . --- src/cdrom-iso.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cdrom-iso.c b/src/cdrom-iso.c index 1b44f6953..7a3fbc0df 100644 --- a/src/cdrom-iso.c +++ b/src/cdrom-iso.c @@ -114,6 +114,14 @@ static int iso_medium_changed(void) return 0; } +static void lba_to_msf(uint8_t *buf, int lba) +{ + lba += 150; + buf[0] = (lba / 75) / 60; + buf[1] = (lba / 75) % 60; + buf[2] = lba % 75; +} + static uint8_t iso_getcurrentsubchannel(uint8_t *b, int msf) { long size; @@ -161,14 +169,6 @@ static void iso_load(void) // pclog("iso_load stub\n"); } -static void lba_to_msf(uint8_t *buf, int lba) -{ - lba += 150; - buf[0] = (lba / 75) / 60; - buf[1] = (lba / 75) % 60; - buf[2] = lba % 75; -} - static int iso_sector_data_type(int sector, int ismsf) { return 2; /* Always Mode 1 */