Mercurial > mplayer.hg
changeset 8532:9688aa033083
fix VCD playback - this is a patch from the netbsd pkgsrc tree,
done by Dieter Baron <dillo@netbsd.org>
author | arpi |
---|---|
date | Mon, 23 Dec 2002 00:40:15 +0000 |
parents | 1aa2c9b460af |
children | 9b73b801af55 |
files | libmpdemux/vcd_read_nbsd.h |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/vcd_read_nbsd.h Mon Dec 23 00:33:22 2002 +0000 +++ b/libmpdemux/vcd_read_nbsd.h Mon Dec 23 00:40:15 2002 +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; }