mirror of https://github.com/mpv-player/mpv
Fix hopefully final 150 sector offset VCD bug. Caused no noticeable problems on Linux
because it is the only case where M:S:F is used in the read call. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23941 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
317fbd8905
commit
653301b8e6
|
@ -20,6 +20,7 @@ struct mp_vcd_priv_st {
|
|||
};
|
||||
|
||||
static inline void vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect){
|
||||
sect += 150;
|
||||
vcd->entry.cdte_addr.msf.frame=sect%75;
|
||||
sect=sect/75;
|
||||
vcd->entry.cdte_addr.msf.second=sect%60;
|
||||
|
@ -30,7 +31,7 @@ static inline void vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect){
|
|||
static inline unsigned int vcd_get_msf(mp_vcd_priv_t* vcd){
|
||||
return vcd->entry.cdte_addr.msf.frame +
|
||||
(vcd->entry.cdte_addr.msf.second+
|
||||
vcd->entry.cdte_addr.msf.minute*60)*75;
|
||||
vcd->entry.cdte_addr.msf.minute*60)*75 - 150;
|
||||
}
|
||||
|
||||
int vcd_seek_to_track(mp_vcd_priv_t* vcd,int track){
|
||||
|
|
Loading…
Reference in New Issue