aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:12 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:12 +0200
commit60a155624c904463df48c5920dc2d096e3ce612d (patch)
tree4f2fcda8425953799040abd2f057c5149baf83e6
parentf667da1b46b7855086205823d6709e09bf7f65dc (diff)
downloadmpd-60a155624c904463df48c5920dc2d096e3ce612d.tar.gz
mpd-60a155624c904463df48c5920dc2d096e3ce612d.tar.xz
mpd-60a155624c904463df48c5920dc2d096e3ce612d.zip
mp3: unsigned integers
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mp3_plugin.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c
index 3321da02d..09c93506a 100644
--- a/src/inputPlugins/mp3_plugin.c
+++ b/src/inputPlugins/mp3_plugin.c
@@ -158,13 +158,13 @@ typedef struct _mp3DecodeData {
int muteFrame;
long *frameOffset;
mad_timer_t *times;
- long highestFrame;
- long maxFrames;
- long currentFrame;
- int dropFramesAtStart;
- int dropFramesAtEnd;
- int dropSamplesAtStart;
- int dropSamplesAtEnd;
+ unsigned long highestFrame;
+ unsigned long maxFrames;
+ unsigned long currentFrame;
+ unsigned int dropFramesAtStart;
+ unsigned int dropFramesAtEnd;
+ unsigned int dropSamplesAtStart;
+ unsigned int dropSamplesAtEnd;
int foundXing;
int foundFirstFrame;
int decodedFirstFrame;
@@ -839,9 +839,9 @@ static int openMp3FromInputStream(InputStream * inStream, mp3DecodeData * data,
static int mp3Read(mp3DecodeData * data, struct decoder *decoder,
ReplayGainInfo ** replayGainInfo)
{
- int samplesPerFrame;
- int samplesLeft;
- int i;
+ unsigned int samplesPerFrame;
+ unsigned int samplesLeft;
+ unsigned int i;
int ret;
int skip;
@@ -971,7 +971,7 @@ static int mp3Read(mp3DecodeData * data, struct decoder *decoder,
if (decoder_get_command(decoder) == DECODE_COMMAND_SEEK &&
data->inStream->seekable) {
- long j = 0;
+ unsigned long j = 0;
data->muteFrame = MUTEFRAME_SEEK;
while (j < data->highestFrame &&
decoder_seek_where(decoder) >