summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-23 00:40:15 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-23 00:40:15 +0000
commit1d2c85409b7101890e084040fd5ca3dd9fe29c77 (patch)
tree99100cff3a29bdcb40bd9001de43811c6a4f51b7 /libmpdemux
parent7f1c5834473c4041337e30f5e606aca629498aa7 (diff)
downloadmpv-1d2c85409b7101890e084040fd5ca3dd9fe29c77.tar.bz2
mpv-1d2c85409b7101890e084040fd5ca3dd9fe29c77.tar.xz
fix VCD playback - this is a patch from the netbsd pkgsrc tree,
done by Dieter Baron <dillo@netbsd.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8533 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/vcd_read_nbsd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libmpdemux/vcd_read_nbsd.h b/libmpdemux/vcd_read_nbsd.h
index a75eebbb36..4139f93b97 100644
--- a/libmpdemux/vcd_read_nbsd.h
+++ b/libmpdemux/vcd_read_nbsd.h
@@ -21,6 +21,20 @@ vcd_set_msf(unsigned int sect)
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 @@ vcd_read(int fd, char *mem)
sc.error);
return -1;
}
+ vcd_inc_msf();
return VCD_SECTOR_DATA;
}