summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2014-01-19 10:48:02 +0000
committerwm4 <wm4@nowhere>2014-01-31 19:04:09 +0100
commit34d9787fcf94beddef339b20908cb5a154329914 (patch)
treef3c4ebb950f5b6c644af1ac0181bfe4bdb0a17cc
parent1c0b80d5187764055d45931284c7af900b685d05 (diff)
downloadmpv-34d9787fcf94beddef339b20908cb5a154329914.tar.bz2
mpv-34d9787fcf94beddef339b20908cb5a154329914.tar.xz
vcd_read: Fix sizeof argument.
The struct we need to copy is actually a cdrom_msf0, not cdrom_msf. Even though the kernel for no good reason reads it in as a cdrom_msf struct, but only uses the part shared with cdrom_msf0 - this is probably a kernel bug. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36622 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/vcd_read.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/vcd_read.h b/stream/vcd_read.h
index c6a49603a4..07b8802a0f 100644
--- a/stream/vcd_read.h
+++ b/stream/vcd_read.h
@@ -126,7 +126,7 @@ static mp_vcd_priv_t* vcd_read_toc(stream_t *stream, int fd){
static int vcd_read(mp_vcd_priv_t* vcd,char *mem){
#ifndef sun
- memcpy(vcd->buf,&vcd->entry.cdte_addr.msf,sizeof(struct cdrom_msf));
+ memcpy(vcd->buf,&vcd->entry.cdte_addr.msf,sizeof(vcd->entry.cdte_addr.msf));
if(ioctl(vcd->fd,CDROMREADRAW,vcd->buf)==-1) return 0; // EOF?
memcpy(mem,&vcd->buf[VCD_SECTOR_OFFS],VCD_SECTOR_DATA);
#else