diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-30 16:13:04 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-30 16:13:04 +0000 |
commit | 653301b8e685599d8345be205680bac0bc9a8bd6 (patch) | |
tree | 52b483cfafda47a235d02f30b2033ca93162e67e /stream | |
parent | 317fbd89058afc34989519beab42eb60a59d0b69 (diff) | |
download | mpv-653301b8e685599d8345be205680bac0bc9a8bd6.tar.bz2 mpv-653301b8e685599d8345be205680bac0bc9a8bd6.tar.xz |
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
Diffstat (limited to 'stream')
-rw-r--r-- | stream/vcd_read.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/vcd_read.h b/stream/vcd_read.h index 422073344a..9d2765aa5a 100644 --- a/stream/vcd_read.h +++ b/stream/vcd_read.h @@ -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){ |