# HG changeset patch # User reimar # Date 1185724795 0 # Node ID 3a5f766397b52a1843572d66ae0fbf618834833f # Parent f4d419485f3e957c1f99464931ffd68fd9bf4db6 Simplify and fix missing offset for Darwin vcd_get/set_msf functions diff -r f4d419485f3e -r 3a5f766397b5 stream/vcd_read_darwin.h --- a/stream/vcd_read_darwin.h Sun Jul 29 15:45:47 2007 +0000 +++ b/stream/vcd_read_darwin.h Sun Jul 29 15:59:55 2007 +0000 @@ -28,18 +28,12 @@ static inline void vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect) { - vcd->msf.frame=sect%75; - sect=sect/75; - vcd->msf.second=sect%60; - sect=sect/60; - vcd->msf.minute=sect; + vcd->msf = CDConvertLBAToMSF(sect); } static inline unsigned int vcd_get_msf(mp_vcd_priv_t* vcd) { - return vcd->msf.frame + - (vcd->msf.second+ - vcd->msf.minute*60)*75; + return CDConvertMSFToLBA(vcd->msf); } int vcd_seek_to_track(mp_vcd_priv_t* vcd, int track)