aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/mp3_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:12 +0200
committerEric Wong <normalperson@yhbt.net>2008-08-30 19:23:36 -0700
commit70bf8cfa27ed88bd01ace37949599ef5680aa6c5 (patch)
treebde1e696653925b4e4b0f8de363439e75b26e13d /src/inputPlugins/mp3_plugin.c
parent34b5a1c80be51698acc7ac22a3480097ca33e7ad (diff)
downloadmpd-70bf8cfa27ed88bd01ace37949599ef5680aa6c5.tar.gz
mpd-70bf8cfa27ed88bd01ace37949599ef5680aa6c5.tar.xz
mpd-70bf8cfa27ed88bd01ace37949599ef5680aa6c5.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 87c8d6ea9..000a4c688 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;
@@ -838,7 +838,7 @@ static float frame_time(mp3DecodeData * data, long j)
static void mp3Read_seek(mp3DecodeData * data)
{
- long j = 0;
+ unsigned long j = 0;
data->muteFrame = MUTEFRAME_SEEK;
assert(pthread_equal(pthread_self(), dc.thread));
@@ -861,9 +861,9 @@ static void mp3Read_seek(mp3DecodeData * data)
static int mp3Read(mp3DecodeData * data, ReplayGainInfo ** replayGainInfo)
{
- int samplesPerFrame;
- int samplesLeft;
- int i;
+ unsigned int samplesPerFrame;
+ unsigned int samplesLeft;
+ unsigned int i;
int ret;
int skip;