summaryrefslogtreecommitdiff
path: root/plugins/dfcdrom/cdr-linux.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-06-08 06:23:53 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-06-08 06:23:53 +0000
commit64173f1d178054fbfd70762a6bbc47d101e9a8fd (patch)
treeced0b0a74355e75cc56ebf4693af793783f6dd17 /plugins/dfcdrom/cdr-linux.c
parent2bfed965a2f117ee4b96e94c46eb4b4e52fec84c (diff)
downloadpcsxr-64173f1d178054fbfd70762a6bbc47d101e9a8fd.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@51494 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfcdrom/cdr-linux.c')
-rw-r--r--plugins/dfcdrom/cdr-linux.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/dfcdrom/cdr-linux.c b/plugins/dfcdrom/cdr-linux.c
index 59115390..8b4a928f 100644
--- a/plugins/dfcdrom/cdr-linux.c
+++ b/plugins/dfcdrom/cdr-linux.c
@@ -584,7 +584,7 @@ long CDRreadCDDA(unsigned char m, unsigned char s, unsigned char f, unsigned cha
p = CDRgetBuffer();
if (p == NULL) return -1;
- memcpy(buffer, p - 12, 2352); // copy from the beginning of the sector
+ memcpy(buffer, p - 12, CD_FRAMESIZE_RAW); // copy from the beginning of the sector
return 0;
}
@@ -595,9 +595,7 @@ long CDRgetTE(unsigned char track, unsigned char *m, unsigned char *s, unsigned
if (cdHandle < 1) return -1;
- track++;
-
- entry.cdte_track = track;
+ entry.cdte_track = track + 1;
entry.cdte_format = CDROM_MSF;
if (ioctl(cdHandle, CDROMREADTOCENTRY, &entry) == -1)