CVS: main/libmpdemux vcd_read_nbsd.h,1.2,1.3
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@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; }
participants (1)
-
Arpi of Ize