input_stream: convert offset and size to the off_t data type

size_t and long aren't 64 bit safe (i.e. files larger than 2 GB on a
32 bit OS).  Use off_t instead, which is a 64 bit integer if compiled
with large file support.
This commit is contained in:
Max Kellermann
2008-10-28 20:39:09 +01:00
parent 016d996131
commit 0a61877702
5 changed files with 12 additions and 13 deletions

View File

@@ -673,7 +673,7 @@ static int decodeFirstFrame(mp3DecodeData * data,
* Attempt to calulcate the length of the song from filesize
*/
{
size_t offset = data->inStream->offset;
off_t offset = data->inStream->offset;
mad_timer_t duration = data->frame.header.duration;
float frameTime = ((float)mad_timer_count(duration,
MAD_UNITS_MILLISECONDS)) / 1000;