[MPlayer-cvslog] r23882 - trunk/stream/vcd_read_fbsd.h
reimar
subversion at mplayerhq.hu
Fri Jul 27 20:51:07 CEST 2007
Author: reimar
Date: Fri Jul 27 20:51:07 2007
New Revision: 23882
Log:
Fix MSF -> sector conversion being 150 sectors of
(pregap or whatever it is called)
Modified:
trunk/stream/vcd_read_fbsd.h
Modified: trunk/stream/vcd_read_fbsd.h
==============================================================================
--- trunk/stream/vcd_read_fbsd.h (original)
+++ trunk/stream/vcd_read_fbsd.h Fri Jul 27 20:51:07 2007
@@ -48,6 +48,7 @@ vcd_set_msf(mp_vcd_priv_t* vcd, unsigned
#ifdef VCD_NETBSD
vcd->entry.data = &vcd->entry_data;
#endif
+ sect += 150;
TOCADDR(vcd->entry).msf.frame = sect % 75;
sect = sect / 75;
TOCADDR(vcd->entry).msf.second = sect % 60;
@@ -80,7 +81,7 @@ vcd_get_msf(mp_vcd_priv_t* vcd)
#endif
return TOCADDR(vcd->entry).msf.frame +
(TOCADDR(vcd->entry).msf.second +
- TOCADDR(vcd->entry).msf.minute * 60) * 75;
+ TOCADDR(vcd->entry).msf.minute * 60) * 75 - 150;
}
/**
More information about the MPlayer-cvslog
mailing list