From 4a00ef1767e3b55a20c6041781af48d455b12e33 Mon Sep 17 00:00:00 2001 From: zuxy Date: Wed, 28 Nov 2007 11:48:45 +0000 Subject: Correct VCD track no. calculation on Windows. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25188 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/vcd_read_win32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/vcd_read_win32.h') diff --git a/stream/vcd_read_win32.h b/stream/vcd_read_win32.h index cccc9a62c6..4ade18514a 100644 --- a/stream/vcd_read_win32.h +++ b/stream/vcd_read_win32.h @@ -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] + -- cgit v1.2.3