diff options
author | Max Kellermann <max@duempel.org> | 2008-10-28 20:39:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-28 20:39:09 +0100 |
commit | 0a61877702965dc375b3ad2b2d1cf0315703c22e (patch) | |
tree | 9c4ed9b5ae32a1b00eab1b84b08f0100be4e3aa1 /src/decoder | |
parent | 016d996131d560db6d72476ae29c74df84746fff (diff) | |
download | mpd-0a61877702965dc375b3ad2b2d1cf0315703c22e.tar.gz mpd-0a61877702965dc375b3ad2b2d1cf0315703c22e.tar.xz mpd-0a61877702965dc375b3ad2b2d1cf0315703c22e.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/mp3_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/mp3_plugin.c b/src/decoder/mp3_plugin.c index 68f786106..d4913c27d 100644 --- a/src/decoder/mp3_plugin.c +++ b/src/decoder/mp3_plugin.c @@ -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; |