mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
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:
parent
63e8a30682
commit
5d70f50109
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user