1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00

The buffer used for pread need be aligned, but currently it got an offset 23

to the structure head. This will cause the pread always got random data
on some machines (such as my iMac G5 PPC with 10.5 os) so can not play vcd.
I also tried use DKIOCCDREAD ioctl call, but the result is same -- buffer need
be aligned. It could be a bug of os x or its dev lib.
Now fix this problem by move the buffer to a good aligned position in structure.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25404 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-12-15 12:17:51 +00:00
parent 25a4519cd9
commit 9c189c49bf

View File

@ -21,9 +21,9 @@ typedef struct
typedef struct mp_vcd_priv_st
{
int fd;
cdsector_t buf;
dk_cd_read_track_info_t entry;
CDMSF msf;
cdsector_t buf;
} mp_vcd_priv_t;
static inline void vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect)