VirtualBox

Changeset 78169 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Apr 17, 2019 3:18:00 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130084
Message:

CUE: Needs to use its own MSF to LBA conversion with no offset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/CUE.cpp

    r76553 r78169  
    262262*********************************************************************************************************************************/
    263263
     264
     265/**
     266 * Converts a MSF formatted address value read from the given buffer
     267 * to an LBA number. MSF 00:00:00 equals LBA 0.
     268 *
     269 * @returns The LBA number.
     270 * @param   pbBuf               The buffer to read the MSF formatted address
     271 *                              from.
     272 */
     273DECLINLINE(uint32_t) cueMSF2LBA(const uint8_t *pbBuf)
     274{
     275    return (pbBuf[0] * 60 + pbBuf[1]) * 75 + pbBuf[2];
     276}
     277
    264278/**
    265279 * Ensures that the region list can hold up to the given number of tracks.
     
    837851
    838852                *pu8Index = (uint8_t)u64Index;
    839                 *pu64Lba  = scsiMSF2LBA(&abMsf[0]);
     853                *pu64Lba  = cueMSF2LBA(&abMsf[0]);
    840854                cueTokenizerConsume(pTokenizer);
    841855            }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette