[Mplayer-cvslog] CVS: main/libmpdemux vcd_read_nbsd.h,1.2,1.3

Arpi of Ize arpi at mplayerhq.hu
Mon Dec 23 01:40:18 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv15422

Modified Files:
	vcd_read_nbsd.h 
Log Message:
fix VCD playback - this is a patch from the netbsd pkgsrc tree,
done by Dieter Baron <dillo at netbsd.org>


Index: vcd_read_nbsd.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/vcd_read_nbsd.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vcd_read_nbsd.h	15 Sep 2002 18:48:16 -0000	1.2
+++ vcd_read_nbsd.h	23 Dec 2002 00:40:15 -0000	1.3
@@ -21,6 +21,20 @@
   vcd_entry_data.addr.msf.minute = sect;
 }
 
+static inline void
+vcd_inc_msf(void)
+{
+  vcd_entry_data.addr.msf.frame++;
+  if (vcd_entry_data.addr.msf.frame==75){
+    vcd_entry_data.addr.msf.frame=0;
+    vcd_entry_data.addr.msf.second++;
+    if (vcd_entry_data.addr.msf.second==60){
+      vcd_entry_data.addr.msf.second=0;
+      vcd_entry_data.addr.msf.minute++;
+    }
+  }
+}
+
 static inline unsigned int 
 vcd_get_msf()
 {
@@ -145,6 +159,7 @@
 	    sc.error);
     return -1;
   }
+  vcd_inc_msf();
   return VCD_SECTOR_DATA;
 }
 




More information about the MPlayer-cvslog mailing list