From 5d70f5010940a0e915841442640a0ceb1e266f9d Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 27 Jul 2007 18:51:07 +0000 Subject: Fix MSF -> sector conversion being 150 sectors of (pregap or whatever it is called) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23882 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/vcd_read_fbsd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stream/vcd_read_fbsd.h') diff --git a/stream/vcd_read_fbsd.h b/stream/vcd_read_fbsd.h index 83afeb542d..47d583643d 100644 --- a/stream/vcd_read_fbsd.h +++ b/stream/vcd_read_fbsd.h @@ -48,6 +48,7 @@ vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect) #ifdef VCD_NETBSD vcd->entry.data = &vcd->entry_data; #endif + sect += 150; TOCADDR(vcd->entry).msf.frame = sect % 75; sect = sect / 75; TOCADDR(vcd->entry).msf.second = sect % 60; @@ -80,7 +81,7 @@ vcd_get_msf(mp_vcd_priv_t* vcd) #endif return TOCADDR(vcd->entry).msf.frame + (TOCADDR(vcd->entry).msf.second + - TOCADDR(vcd->entry).msf.minute * 60) * 75; + TOCADDR(vcd->entry).msf.minute * 60) * 75 - 150; } /** -- cgit v1.2.3