mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 18:12:22 +00:00
Correct VCD track no. calculation on Windows.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25188 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c869211a95
commit
4a00ef1767
@ -21,7 +21,7 @@ static inline void vcd_set_msf(mp_vcd_priv_t* vcd, unsigned sect)
|
||||
}
|
||||
|
||||
static inline unsigned vcd_get_msf(mp_vcd_priv_t* vcd, int track){
|
||||
int index = track + vcd->toc.FirstTrack - 1;
|
||||
int index = track - vcd->toc.FirstTrack;
|
||||
/* -150 to compensate the 2-second pregap */
|
||||
return vcd->toc.TrackData[index].Address[3] +
|
||||
(vcd->toc.TrackData[index].Address[2] +
|
||||
|
Loading…
Reference in New Issue
Block a user