# HG changeset patch # User nenolod # Date 1130210155 25200 # Node ID 26e98cee788fde9012c17acbcb0f0ff227ad065d # Parent aabb32732ad3c2b0a9847afec9f938eab5717896 [svn] I hate GCC4. diff -r aabb32732ad3 -r 26e98cee788f Input/aac/libmp4v2/mp4file_io.cpp --- 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 {