summaryrefslogtreecommitdiffstats
path: root/stream/vcd_read_darwin.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-29 15:59:55 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-29 15:59:55 +0000
commitef750478b713a8bdfa0e3e93e999855de2b56396 (patch)
tree450439d95c4a38ebcbbcf083d58fc95c103eb088 /stream/vcd_read_darwin.h
parent625971876a58daa3899d7fadc128be425a6fd627 (diff)
downloadmpv-ef750478b713a8bdfa0e3e93e999855de2b56396.tar.bz2
mpv-ef750478b713a8bdfa0e3e93e999855de2b56396.tar.xz
Simplify and fix missing offset for Darwin vcd_get/set_msf functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23918 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/vcd_read_darwin.h')
-rw-r--r--stream/vcd_read_darwin.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/stream/vcd_read_darwin.h b/stream/vcd_read_darwin.h
index 0a54731d80..74ec04de2a 100644
--- a/stream/vcd_read_darwin.h
+++ b/stream/vcd_read_darwin.h
@@ -28,18 +28,12 @@ typedef struct mp_vcd_priv_st
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)