Mercurial > mplayer.hg
changeset 25160:fa4dc90bfe06
Correct VCD track no. calculation on Windows.
author | zuxy |
---|---|
date | Wed, 28 Nov 2007 11:48:45 +0000 |
parents | fb1bd7bf749d |
children | d21bc7f05de6 |
files | stream/vcd_read_win32.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/vcd_read_win32.h Wed Nov 28 11:36:23 2007 +0000 +++ b/stream/vcd_read_win32.h Wed Nov 28 11:48:45 2007 +0000 @@ -21,7 +21,7 @@ } 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] +