From 653301b8e685599d8345be205680bac0bc9a8bd6 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 30 Jul 2007 16:13:04 +0000 Subject: [PATCH] Fix hopefully final 150 sector offset VCD bug. Caused no noticeable problems on Linux because it is the only case where M:S:F is used in the read call. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23941 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/vcd_read.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stream/vcd_read.h b/stream/vcd_read.h index 422073344a..9d2765aa5a 100644 --- a/stream/vcd_read.h +++ b/stream/vcd_read.h @@ -20,6 +20,7 @@ struct mp_vcd_priv_st { }; static inline void vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect){ + sect += 150; vcd->entry.cdte_addr.msf.frame=sect%75; sect=sect/75; vcd->entry.cdte_addr.msf.second=sect%60; @@ -30,7 +31,7 @@ static inline void vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect){ static inline unsigned int vcd_get_msf(mp_vcd_priv_t* vcd){ return vcd->entry.cdte_addr.msf.frame + (vcd->entry.cdte_addr.msf.second+ - vcd->entry.cdte_addr.msf.minute*60)*75; + vcd->entry.cdte_addr.msf.minute*60)*75 - 150; } int vcd_seek_to_track(mp_vcd_priv_t* vcd,int track){