mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 00:07:33 +00:00
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
This commit is contained in:
parent
7f1c583447
commit
1d2c85409b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user