summaryrefslogtreecommitdiffstats
path: root/stream/vcd_read_win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream/vcd_read_win32.h')
-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] +