Mercurial > mplayer.hg
changeset 23921:70cc4846c885
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.
author | reimar |
---|---|
date | Mon, 30 Jul 2007 16:13:04 +0000 |
parents | bbf984f520af |
children | ee2cf48d6659 |
files | stream/vcd_read.h |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/vcd_read.h Mon Jul 30 15:53:50 2007 +0000 +++ b/stream/vcd_read.h Mon Jul 30 16:13:04 2007 +0000 @@ -20,6 +20,7 @@ }; 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 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){