diff options
-rw-r--r-- | lib/cdreader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cdreader.cpp b/lib/cdreader.cpp index 59c8127..d705e01 100644 --- a/lib/cdreader.cpp +++ b/lib/cdreader.cpp @@ -49,14 +49,14 @@ off_t cdreader::seek(off_t offset, int whence) throw (GeneralException) { } ssize_t cdreader::read(void *buf, size_t count) throw (GeneralException) { - char sector[CD_FRAMESIZE_RAW]; + char sector[2352]; size_t r = count; - size_t remain = itell % CD_FRAMESIZE_RAW; - sectorseek(itell / CD_FRAMESIZE_RAW); + size_t remain = itell % 2352; + sectorseek(itell / 2352); while (count > 0) { - size_t n = MIN(CD_FRAMESIZE_RAW - remain, count); + size_t n = MIN(2352 - remain, count); getsector(sector); bcopy(sector + remain, buf, n); buf = ((char *) buf) + n; |