[MPlayer-cvslog] r23918 - trunk/stream/vcd_read_darwin.h

reimar subversion at mplayerhq.hu
Sun Jul 29 17:59:55 CEST 2007


Author: reimar
Date: Sun Jul 29 17:59:55 2007
New Revision: 23918

Log:
Simplify and fix missing offset for Darwin vcd_get/set_msf functions


Modified:
   trunk/stream/vcd_read_darwin.h

Modified: trunk/stream/vcd_read_darwin.h
==============================================================================
--- trunk/stream/vcd_read_darwin.h	(original)
+++ trunk/stream/vcd_read_darwin.h	Sun Jul 29 17:59:55 2007
@@ -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)



More information about the MPlayer-cvslog mailing list