aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:10 +0200
committerEric Wong <normalperson@yhbt.net>2008-08-30 18:44:49 -0700
commitd9ae11d885acdca92ce0f17cc455e891e88a0f77 (patch)
tree4e59398fbf3734492f968bf344f5df4e37d689ac /src
parentc917b19a2afb6916daf5aa8ae73697c2528b2cf3 (diff)
downloadmpd-d9ae11d885acdca92ce0f17cc455e891e88a0f77.tar.gz
mpd-d9ae11d885acdca92ce0f17cc455e891e88a0f77.tar.xz
mpd-d9ae11d885acdca92ce0f17cc455e891e88a0f77.zip
aac: use size_t
Diffstat (limited to 'src')
-rw-r--r--src/inputPlugins/aac_plugin.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/inputPlugins/aac_plugin.c b/src/inputPlugins/aac_plugin.c
index f398a822d..1487a6c2f 100644
--- a/src/inputPlugins/aac_plugin.c
+++ b/src/inputPlugins/aac_plugin.c
@@ -30,9 +30,9 @@
/* all code here is either based on or copied from FAAD2's frontend code */
typedef struct {
InputStream *inStream;
- long bytesIntoBuffer;
- long bytesConsumed;
- long fileOffset;
+ size_t bytesIntoBuffer;
+ size_t bytesConsumed;
+ off_t fileOffset;
unsigned char *buffer;
int atEof;
} AacBuffer;
@@ -40,7 +40,7 @@ typedef struct {
static void fillAacBuffer(AacBuffer * b)
{
if (b->bytesConsumed > 0) {
- int bread;
+ size_t bread;
if (b->bytesIntoBuffer) {
memmove((void *)b->buffer, (void *)(b->buffer +
@@ -78,7 +78,7 @@ static void fillAacBuffer(AacBuffer * b)
}
}
-static void advanceAacBuffer(AacBuffer * b, int bytes)
+static void advanceAacBuffer(AacBuffer * b, size_t bytes)
{
b->fileOffset += bytes;
b->bytesConsumed = bytes;
@@ -92,7 +92,7 @@ static int adtsSampleRates[] =
static int adtsParse(AacBuffer * b, float *length)
{
- int frames, frameLength;
+ unsigned int frames, frameLength;
int sampleRate = 0;
float framesPerSec;