Mercurial > audlegacy
changeset 21:26e98cee788f trunk
[svn] I hate GCC4.
author | nenolod |
---|---|
date | Mon, 24 Oct 2005 20:15:55 -0700 |
parents | aabb32732ad3 |
children | 696f87ed66e2 |
files | Input/aac/libmp4v2/mp4file_io.cpp |
diffstat | 1 files changed, 4 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Input/aac/libmp4v2/mp4file_io.cpp Mon Oct 24 20:04:14 2005 -0700 +++ b/Input/aac/libmp4v2/mp4file_io.cpp Mon Oct 24 20:15:55 2005 -0700 @@ -31,13 +31,11 @@ pFile = m_pFile; } - fpos_t fpos; - if (fgetpos(pFile, &fpos) < 0) { + u_int64_t fpos; + if (fgetpos(pFile, (fpos_t *) &fpos) < 0) { throw new MP4Error(errno, "MP4GetPosition"); } - uint64_t ret; - ret = (u_int64_t) fpos; - return ret; + return fpos; } else { return m_memoryBufferPosition; } @@ -51,8 +49,7 @@ pFile = m_pFile; } - fpos_t fpos = (fpos_t) pos; - if (fsetpos(pFile, &fpos) < 0) { + if (fsetpos(pFile, (fpos_t *) &pos) < 0) { throw new MP4Error(errno, "MP4SetPosition"); } } else {