aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:10 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:10 +0200
commit4ca24b960b53e1775daef44e59aa2ce5c7ecd3fd (patch)
treec6224ffa065800192a5a8cfe1684a4c45c64408b /src
parent82ca4cf8ce421cbec87667f6c22b3e7165443016 (diff)
downloadmpd-4ca24b960b53e1775daef44e59aa2ce5c7ecd3fd.tar.gz
mpd-4ca24b960b53e1775daef44e59aa2ce5c7ecd3fd.tar.xz
mpd-4ca24b960b53e1775daef44e59aa2ce5c7ecd3fd.zip
eliminate unused variables in the AAC decoder
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/aac_plugin.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/inputPlugins/aac_plugin.c b/src/inputPlugins/aac_plugin.c
index f352d0b88..e725049e2 100644
--- a/src/inputPlugins/aac_plugin.c
+++ b/src/inputPlugins/aac_plugin.c
@@ -93,9 +93,8 @@ static int adtsSampleRates[] =
static int adtsParse(AacBuffer * b, float *length)
{
int frames, frameLength;
- int tFrameLength = 0;
int sampleRate = 0;
- float framesPerSec, bytesPerFrame;
+ float framesPerSec;
/* Read all frames to ensure correct time and bitrate */
for (frames = 0;; frames++) {
@@ -118,8 +117,6 @@ static int adtsParse(AacBuffer * b, float *length)
<< 11) | (((unsigned int)b->buffer[4])
<< 3) | (b->buffer[5] >> 5);
- tFrameLength += frameLength;
-
if (frameLength > b->bytesIntoBuffer)
break;
@@ -129,10 +126,6 @@ static int adtsParse(AacBuffer * b, float *length)
}
framesPerSec = (float)sampleRate / 1024.0;
- if (frames != 0) {
- bytesPerFrame = (float)tFrameLength / (float)(frames * 1000);
- } else
- bytesPerFrame = 0;
if (framesPerSec != 0)
*length = (float)frames / framesPerSec;
@@ -227,7 +220,6 @@ static float getAacFloatTotalTime(char *file)
{
AacBuffer b;
float length;
- size_t fileread, tagsize;
faacDecHandle decoder;
faacDecConfigurationPtr config;
uint32_t sampleRate;
@@ -238,7 +230,7 @@ static float getAacFloatTotalTime(char *file)
if (openInputStream(&inStream, file) < 0)
return -1;
- initAacBuffer(&inStream, &b, &length, &fileread, &tagsize);
+ initAacBuffer(&inStream, &b, &length, NULL, NULL);
if (length < 0) {
decoder = faacDecOpen();