Index: /trunk/src/VBox/Storage/CUE.cpp
===================================================================
--- /trunk/src/VBox/Storage/CUE.cpp	(revision 78168)
+++ /trunk/src/VBox/Storage/CUE.cpp	(revision 78169)
@@ -262,4 +262,18 @@
 *********************************************************************************************************************************/
 
+
+/**
+ * Converts a MSF formatted address value read from the given buffer
+ * to an LBA number. MSF 00:00:00 equals LBA 0.
+ *
+ * @returns The LBA number.
+ * @param   pbBuf               The buffer to read the MSF formatted address
+ *                              from.
+ */
+DECLINLINE(uint32_t) cueMSF2LBA(const uint8_t *pbBuf)
+{
+    return (pbBuf[0] * 60 + pbBuf[1]) * 75 + pbBuf[2];
+}
+
 /**
  * Ensures that the region list can hold up to the given number of tracks.
@@ -837,5 +851,5 @@
 
                 *pu8Index = (uint8_t)u64Index;
-                *pu64Lba  = scsiMSF2LBA(&abMsf[0]);
+                *pu64Lba  = cueMSF2LBA(&abMsf[0]);
                 cueTokenizerConsume(pTokenizer);
             }
