Fix MSF -> sector conversion being 150 sectors of

(pregap or whatever it is called)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23882 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-07-27 18:51:07 +00:00
parent 63e8a30682
commit 5d70f50109
1 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect)
#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;
}
/**