summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-28 11:48:45 +0000
committerzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-28 11:48:45 +0000
commit4a00ef1767e3b55a20c6041781af48d455b12e33 (patch)
tree496280f8a706d0f15754ed24f056783c6ee4c7f6
parentc869211a9594a7d550fb4e60592aff4054af729b (diff)
downloadmpv-4a00ef1767e3b55a20c6041781af48d455b12e33.tar.bz2
mpv-4a00ef1767e3b55a20c6041781af48d455b12e33.tar.xz
Correct VCD track no. calculation on Windows.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25188 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/vcd_read_win32.h2
1 files changed, 1 insertions, 1 deletions
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] +