[MPlayer-cvslog] r23941 - trunk/stream/vcd_read.h
reimar
subversion at mplayerhq.hu
Mon Jul 30 18:13:04 CEST 2007
Author: reimar
Date: Mon Jul 30 18:13:04 2007
New Revision: 23941
Log:
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.
Modified:
trunk/stream/vcd_read.h
Modified: trunk/stream/vcd_read.h
==============================================================================
--- trunk/stream/vcd_read.h (original)
+++ trunk/stream/vcd_read.h Mon Jul 30 18:13:04 2007
@@ -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_pr
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){
More information about the MPlayer-cvslog
mailing list