changeset 23862:a20ea1dd0812

Fix MSF -> sector conversion being 150 sectors of (pregap or whatever it is called)
author reimar
date Fri, 27 Jul 2007 18:51:07 +0000
parents 5d8097aa11cc
children 78f77927050c
files stream/vcd_read_fbsd.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/vcd_read_fbsd.h	Fri Jul 27 18:47:44 2007 +0000
+++ b/stream/vcd_read_fbsd.h	Fri Jul 27 18:51:07 2007 +0000
@@ -48,6 +48,7 @@
 #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 @@
 #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;
 }
 
 /**