[MPlayer-dev-eng] [PATCH] fix VCD playback on NetBSD
Bernd Ernesti
mplayer at lists.veego.de
Sun Dec 22 19:54:25 CET 2002
Hi,
this is a patch from the netbsd pkgsrc tree, done by Dieter Baron <dillo at netbsd.org>:
Log Message:
fix VCD playback
Bernd
-------------- next part --------------
Index: vcd_read_nbsd.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/vcd_read_nbsd.h,v
retrieving revision 1.2
diff -u -r1.2 vcd_read_nbsd.h
--- vcd_read_nbsd.h 15 Sep 2002 18:48:16 -0000 1.2
+++ vcd_read_nbsd.h 22 Dec 2002 19:28:08 -0000
@@ -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-dev-eng
mailing list